From: "Florian X" Newsgroups: comp.os.msdos.djgpp Subject: append to a file Date: Mon, 21 Feb 2000 19:07:33 +0100 X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Lines: 17 Message-ID: <38b17e92$0$82782@SSP1NO17.highway.telekom.at> NNTP-Posting-Host: 212.183.97.89 X-Trace: newsreader.vienna.highway.telekom.at 951156370 82782 212.183.97.89 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I have a silly question: I want to append 128Byte on a file, so I open with char string[126]; FILE *f = fopen(file, "a"); fprintf(f,"TAG%-125s", string); fclose(f); Why doesn't it write anything to file? Thanks, Florian Xaver