Xref: utzoo comp.sys.ibm.pc:30449 comp.lang.c:19530 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!mag2 From: mag2@csd4.milw.wisc.edu (Michael A Gorski) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Trouble readn' and writn' in C Keywords: Turbo C 1.5 fread() fwrite() structures Message-ID: <3048@csd4.milw.wisc.edu> Date: 22 Jun 89 11:25:53 GMT References: <3037@csd4.milw.wisc.edu> <1532@unccvax.UUCP> Sender: news@csd4.milw.wisc.edu Reply-To: mag2@csd4.milw.wisc.edu (Michael A Gorski) Distribution: na Organization: University of Wisconsin-Milwaukee Lines: 20 In article <1532@unccvax.UUCP> cs75jmc@unccvax.UUCP (john m covington) writes: >In article <3037@csd4.milw.wisc.edu>, mag2@csd4.milw.wisc.edu (Michael A Gorski) writes: >> >> FILE *fopen(), *ifp(); > ^^^^^^^ this should be just *ifp; > you have just declared a function named ifp that > returns a pointer to a FILE.... > >This is not the cause of the problem you are currently experiencing, >just thought I would pass this along, in case you are new to C.... The *ifp() was a typo and not in my source. Sorry about that. The problem was that Turbo C defaults to text mode for files and I just had to override that make it binary. Yes I am new to C (This is my first big project) and I'd like to thank everyone for the help. Mike mag2@csd4.milw.wisc.edu