From: buers AT gmx DOT de (Dieter Buerssner) Newsgroups: comp.os.msdos.djgpp Subject: Re: append to a file Date: 22 Feb 2000 01:13:31 GMT Lines: 33 Message-ID: <88snrr$1mdk4$1@fu-berlin.de> References: <38b17e92$0$82782 AT SSP1NO17 DOT highway DOT telekom DOT at> <88s4mf$1lgb0$1 AT fu-berlin DOT de> <38b19ba7$0$30920 AT SSP1NO17 DOT highway DOT telekom DOT at> NNTP-Posting-Host: pec-1-135.tnt1.s2.uunet.de (149.225.1.135) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 951182011 1783428 149.225.1.135 (16 [17104]) X-Posting-Agent: Hamster/1.3.13.0 User-Agent: Xnews/03.02.04 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com dos DOT fire AT aon DOT at (Florian X) wrote in <38b19ba7$0$30920 AT SSP1NO17 DOT highway DOT telekom DOT at>: >This is the real file: > >void save_id3_tag() >{ > FILE *id3_file; > char tag[4]; > > if (tag_avaiable == true) > { > id3_file = fopen(file, "r+"); // THIS works >!!!!!!!!!! [most of code snipped] Sorry, but your example is still not complete. What type is file? How did you initialize file? Maybe, you can post some complete source code, that compiles to an executable, and that shows the behaviour you reported. Also, later in your example, there is msgbox(MW_INFO, MB_OK, "%d",fprintf(id3_file, [...] This seems to call the windows API function MessageBox (MB_OK and MW_INFO are defined in some windows headers), that is not available in stock DJGPP. Are you sure, you compiled with gcc from djgpp? Regards, Dieter