Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   help converting a windows text to linux text file (http://www.go4expert.com/forums/help-converting-windows-text-linux-text-t14522/)

micsom 13Oct2008 11:49

help converting a windows text to linux text file
 
in a windows text file a new-line is represented by 13 10, but in linux it is represented by only 10...

i want to delete the 13 from my text files so that it shows only 10 and is compatible with linux..

logically my code is perfect, and i cant spot any errors...all my collegues have reviewed it too..

but still the 13 is not getting deleted..

please tell me how to delete the 13

shabbir 13Oct2008 12:38

Re: help converting a windows text to linux text file
 
Get an editor like Editplus or slick edit which does this for you

micsom 13Oct2008 13:07

Re: help converting a windows text to linux text file
 
thanx, but i did it...all it needed was a little modification...as linux pads the entire vacent 32 bit...i had to take tht into concideration..

now my code is working fine..

thanx for ur help

gk123987 13Oct2008 16:49

Re: help converting a windows text to linux text file
 
dos2unix filename


All times are GMT +5.5. The time now is 04:08.