Load a .csv file into a string?

0 favourites
  • 6 posts
From the Asset Store
Convert multiple Excel files into JSON files and import them into construct3.
  • My goal is to upload a .csv file into the local file folder of my game. I want to then access the .csv file and store the values into strings which I will then manipulate with tokenat(ect).

    I've tried searching the forums and came across this plugin

    construct.net/en

    and he says that I can use AJAX to get .csv string from external file.

    So I've tried using the AJAX object but haven't had any luck. I was going to make a .capx but I have no idea how to use the AJAX properly to accomplish this, even after reviewing the AJAX object page in the manual.

    construct.net/en

    So if anyone can point me to a real basic example showing how to get from a locally stored .csv file to storing the values in a string, that would be great. Thanks!

  • Capx

  • Thanks so much! I knew it was something real simple like that!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • i am also trying to utilize this plugin for my project.

    Is there a way to save an excel file as csv, then import to project file, and then point to it from the event sheet? i have it imported, but not sure how i can point to it so that it can be loaded into my array object.

    secondly, if a want to store a 'number' in my csv table, can i use it as a number and not just a string? for use with a variable?

  • I was hoping to get a copy of rexrainbow's capx file for this... the dropbox file appears to be gone...

    It would probably answer a lot of questions I have with AJAX!

    Thanks!

  • You may find everything you need in the CSV plugin documentation rexrainbow put here :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)