From: "Adam" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++ fstream class problems. bugs? Date: 30 Nov 1996 21:14:47 GMT Organization: Netcom Lines: 22 Message-ID: <01bbdf14$b7571c60$9168d9ce@#bikko> References: <01bbdeca$2344eba0$7568d9ce@#bikko> NNTP-Posting-Host: als-il5-17.ix.netcom.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Well, I realized the error just 10 minutes after posting, while I wasn't even looking at the code. I didn't open the file for input as well as output. I could swear I opened for input in the program I'm writing, but I found I did not, and when I add the ios::in to the test program here, it works fine. hmm.. Try to explain something to ask a question, and you may realize the answer yourself. hmmm #2: I'm replying to my own post! Bikko :) bikko AT ix DOT netcom DOT com Adam wrote in article <01bbdeca$2344eba0$7568d9ce@#bikko>... > Hello. I'm writing a program that uses the standard C++ fstream class and > the seekg() member function seems to be misbehaving. > fstream fTest; > fTest.open("test.bin", ios::binary | ios::out); >