[SOLVED] doesn'n write to file
#1

Well, here is my code:
pawn Код:
sset(filename[], string[])
{
    if(!fexist(filename)) return 0;
    new File:newfile = fopen(filename, io_append);
    fwrite(newfile, string);
    fclose(newfile);
    return 1;
}
I tried: sset("file.txt", " fome text\r\n"); , but text in file doesn't show, file absolutely empty. Why?
Reply


Messages In This Thread
[SOLVED] doesn'n write to file - by arnutisz - 26.07.2009, 17:44
Re: [HELP] doesn'n write to file - by MadeMan - 26.07.2009, 17:50
Re: [HELP] doesn'n write to file - by Jefff - 26.07.2009, 17:51
Re: [HELP] doesn'n write to file - by arnutisz - 26.07.2009, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)