Devotie98765
07-23-2002, 02:11 PM
Hello,
i 'm writing a Client/Server Application in C and i use Session ID's (int)to verify the Client. The SessionID's will be safed in one file.
When the Client is logged out, the Server must remove his SessionID from the file!
And there is my problem, i don't know, how i remove a int from the file, because i must use the Systemcalls, OPEN, READ, WRITE.
The Sessionfile look like this:
12345667,7654321,2134034
May anybody can give me a simple C example to remove a ID.
Many thanks
Martin
i 'm writing a Client/Server Application in C and i use Session ID's (int)to verify the Client. The SessionID's will be safed in one file.
When the Client is logged out, the Server must remove his SessionID from the file!
And there is my problem, i don't know, how i remove a int from the file, because i must use the Systemcalls, OPEN, READ, WRITE.
The Sessionfile look like this:
12345667,7654321,2134034
May anybody can give me a simple C example to remove a ID.
Many thanks
Martin