Re: Reading/Writing from files
daniel <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Am 21.02.2012 15:51, schrieb Shibu Narayanan: > Hi, > > I am trying to read/write from files. I am able to read from properties file using sample code available from the net. > > Is there a good way to read line by line from a file. The content I like to read is not Key/Value pairs. > You can use Mozilla's XPCOM library to open an output stream, there is an example for reading lines from a file in the developer wiki: https://developer.mozilla.org/en/Reading_textual_data Disclaimer: I didn't used this solution for quite a while, so I am not sure how up to date this information, but it's worth a try. > > > -Shibu > > > _______________________________________________ > dev-tech-xul mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-xul >