• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Issue Saving and Loading

Dan1

Member
Hey everyone,

I'm using the CSV extension from the marketplace (https://marketplace.yoyogames.com/assets/522/csv-manager) and I'm getting some unusual results with the file system.

Basically, if I use this line:
Code:
my_csv = csv_load("C:\Users\boom4\Desktop\123.csv")
I get an issue where it gives me the "file not open for reading" error
HOWEVER, if I use this instead:
Code:
filewr = get_open_filename("Test|*.csv", "")
my_csv = csv_load(filewr)
It works perfectly.

Similarly, if I use:
Code:
csv_save("C:\Users\boom4\Desktop\124", my_csv)
The file doesn't save at all, HOWEVER, if I use:
Code:
csv_save(get_save_filename(".csv",""), my_csv)
it works perfectly.

The CSV extension basically just uses file writing code so I've no idea why it would only work if I use get_save/get_open - I've disabled the file sandbox but not sure why it's not working.

Any ideas would be greatly appreciated :)
 
Top