From: "Florian X" Newsgroups: comp.os.msdos.djgpp References: <38b17e92$0$82782 AT SSP1NO17 DOT highway DOT telekom DOT at> <88s4mf$1lgb0$1 AT fu-berlin DOT de> Subject: Re: append to a file Date: Mon, 21 Feb 2000 21:11:30 +0100 X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Lines: 40 Message-ID: <38b19ba7$0$30920@SSP1NO17.highway.telekom.at> NNTP-Posting-Host: 212.183.88.181 X-Trace: newsreader.vienna.highway.telekom.at 951163815 30920 212.183.88.181 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 !!!!!!!!!! fseek(id3_file,-128, SEEK_END); } else { id3_file = fopen(file, "a"); // But if I want to append, it doesn't !! // It writes id3_tags from mp3 files, // if the mp3 files has no id3 tag, it should be append to the file } msgbox(MW_INFO, MB_OK, "%d",fprintf(id3_file, "TAG%-30s%-30s%-30s%-4s%-29s%2s", textl->text,textl2->text,textl3->text,textl5->text,textl4->text, "12")); // fprintf prints 128, so 128 bytes are wrote, but if I open the file, I see that it isn't written fclose(id3_file); } Thank you, Florian X