GML Problems loading from ini file

B

bob15253545

Guest
I'm not entirely sure why it doesn't work. So I've got a script that is supposed to load an ini file and then transfer some variables over to an object I have but it never seems to open the file.
I want to use a variable name (since its a script for multiple different events) but that seems to be the issue.
my code looks like this.

var textName = argument0; //note I am inputting a string like "test_file.ini" and I have a file where the project is
//saved with the title "test_file.ini"

if(file_exists(textName))
{
(all the variable stuff gets transferred here)
}
else
{
show_message("Could Not Find File.");
}

It always seems to execute the show message so unless I have failed in a basic understanding of how to use these functions I have no idea what I have done wrong
 
B

bob15253545

Guest
nvm I'm an idiot I put it in the project folder not the folder the game actually uses for files........
 
Top