Saving inputtext into a simple text file
#3

pawn Код:
stock AddLogLine( field[ ], file[ ], input[ ] )
{
    new string[128];
    format(string, 128, "%s: %s\r\n", field, input);

    new File:fhandle;

    if(fexist(file)) {
        printf("Creating file '%s' because theres no file created with that name.", file);
    }

    fhandle = fopen(file,io_append);

    fwrite(fhandle,string);
    fclose(fhandle);
    return 1;
}
Try this, just created one.. change the parameters to desired settings.
Reply


Messages In This Thread
Saving inputtext into a simple text file - by [SAP]HighFlyer - 01.07.2011, 11:06
Re: Saving inputtext into a simple text file - by Sascha - 01.07.2011, 11:11
Re: Saving inputtext into a simple text file - by Lorenc_ - 01.07.2011, 11:13
Re: Saving inputtext into a simple text file - by BigETI - 01.07.2011, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)