Xref: utzoo comp.sys.ibm.pc:27834 comp.binaries.ibm.pc.d:2792 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!h.cs.wvu.wvnet.edu!a.cs.wvu.wvnet.edu!packer From: packer@a.cs.wvu.wvnet.edu (Michael A Packer) Newsgroups: comp.sys.ibm.pc,comp.binaries.ibm.pc.d Subject: HELP need in C (turbo c, fopen problem) Keywords: HELP URGENT Message-ID: <353@h.cs.wvu.wvnet.edu> Date: 24 Apr 89 21:46:46 GMT Sender: news@h.cs.wvu.wvnet.edu Lines: 42 I am having a problem with Turbo C (2.0) that I am hoping someone else has already encountered and can help me with. problem: i am trying to open a file. When i open the file my filepointer is being returned (not null). When i look at what fp is pointing to there is garbage in the "buffer" and "curp" as declared by FILE. i have not had this problem anywhere else (ie: in any other projects) just the one i am currently working on. I am running on a Zenith 286 with 512K, i believe it to be a problem with the amount of memory i have on my machine. my open statement is normal: if ((fp=fopen("junk.dat","w"))==NULL) { printf ("Can't open file\n"); return; } when i examine *fp right after that statement is when it is all messed up! Anyone that can offer any help would be greatly appreciated. I really need to have this solve in the next day and can find no other way to get help then other NETters, I tried to call BORLAND but was placed on infinite hold. please respond to packer@a.cs.wvu.wvnet.edu (wrong in header line) or un027661@wvnvaxb.wvnet.edu thanks SO much in advance!!!!!!!! michael packer USMAIL: 318 Knapp Hall, WVU, Morgantown, WV 26506 PHONE: 304 293-3607 INTERNET : packer@a.cs.wvu.wvnet.edu USENET: {allegra,bellcore,ihpn4!cadre,decvax!idis,psuvax1}!pitt!wvucsa!packer