Forum Discussion

Geethanjali's avatar
Geethanjali
Occasional Contributor
4 years ago
Solved

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 correctl...
  • AlexKaras's avatar
    AlexKaras
    4 years ago

    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