prodizy wrote:
How do I read a file, line by line, without using the unfrozen interface nsILineInputStream? Especially, when I am using nsILocalFile::openNSPRFileDesc() with PR_Read(). Ofcourse, I can read byte by byte till I get newline char. But is there any simple way to do this?
Hm... you may have to use openANSIFileDesc for that, or do line reading manually. You don't have to read byte by byte, you can read larger chunks into a buffer and look for a newline there.
-- All the world's a stage, And all the men and women merely players: They have their exits and their entrances; And one man in his time plays many parts, [...] --W. Shakespeare _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
