03.03.2011, 20:35
This is doing my head in, I haven't used files for a while, as I find a MySQL database a lot more convenient and organised, but today I decided I would try it for another project. I went to the wiki and looked at the file tutorial, understood it etcetera, and when I try to execute the example code, this is my output:
[21:35:59] яюh
This is the code
Anyone got any ideas?
[21:35:59] яюh
This is the code
pawn Код:
new filestring[256]; // Create the string to store the read text in
new File:example = fopen("text.cfg", io_read); // Open the file
fread(example, filestring); // Fread from the file and store what's read in 'string'
printf("%s", filestring); // Print what was read
fclose(example); // Close the file