Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Adding to a growing file in the filesystem with C...
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Adding to a growing file in the filesystem with C... (Read 2448 times)
Description:
0 Members and 1 Guest are viewing this topic.
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3396
Country:
Thanked: 22 times
Re: Adding to a growing file in the filesystem with C...
«
on:
April 14, 2005, 09:15:26 PM »
You must not write to a file opened with MODE_OLDFILE. There is MODE_READWRITE for this.
if (f = Open("logfile",MODE_READWRITE))
{
Seek (f,0,OFFSET_END);
FPrintf (f,"%s\n",logmessage);
Close (f);
}
Bye,
Thomas
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.hier-im-netz.de
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Adding to a growing file in the filesystem with C...
There was an error while thanking
Thanking...