D
Deeo
Guest
Trying to just see if my game loads a text file and if there's info in it.
The file has several strings broken up by commas but i keep getting -1 from file_text_open_read.
heres my code:
game maker 1 tutorials so that (working_directory + "\data\files" + file_food_name) part should have a \ at the end of it but in GM2 it just makes everything else after the \" all text. Can't figure this out please help!
The file has several strings broken up by commas but i keep getting -1 from file_text_open_read.
heres my code:
Code:
var file_food_name = "foods.txt"; //Name of the file of the master list of foods in game and their attributes
file_food = file_text_open_read(working_directory + "\data\files" + file_food_name);
if (file_food = -1)
{
show_message("Error! No information to load, CODE 21");
exit;
}