Unix iTOps Tube

Monday, May 14, 2012

File operations in C pgm

i am reading and writing to a a file in C language. the input file is described as follows

111 aaa descr1

222 bbb descr2

333 ccc <SPACE> {6 spaces are left after ccc i.e in 3rd column}

444 ddd descr4

when i read and write to a file, the space is not coming in the output file.


Expected output:

111aaadescr1222bbbdescr2333ccc 444ddddescr4

Can somebody help me in modifying the code?

No comments:

Post a Comment