1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Windows Issue Saving and Loading

Discussion in 'Programming' started by Dan1, Jul 16, 2019.

  1. Dan1

    Dan1 Member

    Jun 22, 2016
    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:
    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:
    filewr = get_open_filename("Test|*.csv", "")
    my_csv = csv_load(filewr)
    It works perfectly.

    Similarly, if I use:
    csv_save("C:\Users\boom4\Desktop\124", my_csv)
    The file doesn't save at all, HOWEVER, if I use:
    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 :)

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice