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

    Joined:
    Jun 22, 2016
    Posts:
    163
    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 :)
     

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