Write a file
#2

pawn Код:
new
    Day, Month, Year,
    string[20],
    File:LogFile;

getdate(Year, Month, Day);
format(string, sizeof(string), "%d-%d-%d.txt", Year, Month, Day);
LogFile = fopen(string, io_readwrite);
fwrite(LogFile, "Your tosh goes here\n\r");
fclose(LogFile);
Along those lines...
Reply


Messages In This Thread
Write a file - by Remi-X - 16.06.2009, 18:40
Re: Write a file - by Weirdosport - 16.06.2009, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)