Hi,
I have a text-file that is wrapped. Can any-one help me how to un-wrap that file using java. Basically I am trying to delete any occurence of \r\n i.e hex 0D hex0A from a file. So that my resulting file is un-wrapped. Currently each line ends with hex 0D 0A and I want to delete these 0D 0A from the end of each line. Any help is really appreciated. Thanks
file looks like this:
asas asasas saa
dsdsd sdsd sdsd
sdsd sds dsdd sd
now I want to look like as below:
asas asasas saadsdsd sdsd sdsdsdsd sds dsdd sd
i.e. all the 0D0A are removed and the file is un-wrapped.
I have a text-file that is wrapped. Can any-one help me how to un-wrap that file using java. Basically I am trying to delete any occurence of \r\n i.e hex 0D hex0A from a file. So that my resulting file is un-wrapped. Currently each line ends with hex 0D 0A and I want to delete these 0D 0A from the end of each line. Any help is really appreciated. Thanks
file looks like this:
asas asasas saa
dsdsd sdsd sdsd
sdsd sds dsdd sd
now I want to look like as below:
asas asasas saadsdsd sdsd sdsdsdsd sds dsdd sd
i.e. all the 0D0A are removed and the file is un-wrapped.