Turbo C, fopen(), fprintf() and ^Z - I need help!!

Chris Edgington *Computer Science Major* edgincd2 at mentor.cc.purdue.edu
Tue Sep 18 17:45:25 AEST 1990


In article <38742 at ucbvax.BERKELEY.EDU>, brand at janus.Berkeley.EDU (Graham Brand) writes:
> instruction. The problem that I am having is that the line that is 
> appended in the file is preceeded with a ^Z which makes the data
> invisible when a type command is issued from MSDOS. I can use vi and

Is the ^Z leftover from the original dos file or is it the first character of
the append data??  If it is leftover from the original file, you could you
fsetpos to set the position for writing as eof(original)-1, then it would
erase the ^Z

Chris



More information about the Comp.lang.c mailing list