Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!hydra!sol!pinter From: pinter@sol.bucknell.edu (pinter) Newsgroups: comp.sys.ibm.pc Subject: using files in C on the IBM PC Message-ID: <110@sol.bucknell.edu> Date: 2 May 89 23:56:09 GMT Reply-To: pinter@sol.bucknell.edu () Organization: Bucknell University, Lewisburg, Pa. Lines: 17 I'm having a problem using files in C on the PC, which I never encountered on the UNIX machines I used in the past. I have tried two versions of C, both Turbo and MSC. Turbo was completely wierd, because whenever I wrote a character of value 10 (LF) to a file, it would write both a 10 and a 13. Also, when reading from a file, it would skip over any characters of value 13. MSC did not have these problems, but both compilers exhibited the problem of being completely unable to read past a character of value 26 in a file. A realize that that is a ctrl-Z or EOF, but it seems there must be some way to have files which include this character. Turbo Pascal has no trouble with it, and I wouldn't want to believe that C is inferior to Pascal in such a dramatic way. Please write me if you have a solution. Also, please do not use the news bulletin board since I don't read it very often. Thanx. -- Marco Pinter pinter@sol.bucknell.edu