Geethanjali
5 years agoOccasional Contributor
Any idea why whole content of a text file is being considered as one line only?
hi,
There is something weird which am not able to figure out. I write some content in a text file and search for a content in the file reading line by line. All the while it was working correctly. Suddenly the whole content of the file is considered as a single line and line count is provided as 1.
Has anyone experienced this problem ? Appreciate any help here
Thanks
S.Geethanjali
Hi,
> Should I use replace method to do that ?
Yes, correct.
Your editor should support search and replace of hexadecimal characters. (I believe that Notepad++, for example, supports this).
Then, if, for example, all lines in the file are ended with just 0x0A, do search for 0x0A and replace with 0x0A0x0D