read and write text or csv files

0 favourites
  • 6 posts
From the Asset Store
OpenAI TTS
$9 USD
10% off
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Hi,

    I'm new to C2 and usually use these kind of programs (used to use MMF2) to make small / simple games just for fun to see what I can do.

    I'm looking at creating something in C2 which can read a pre-made text or csv file. I'd then like it to add some values to this / edit the values and then export as a new text / csv.

    For example the file might start with text "1, 100, 100" meaning ID 1, x co ord 100, y co ord 100. I'd like it then to add 50 to the X co ord and hence save a new text file as "1, 150, 100".

    I started making a simple spread sheet in excel for this but I'm actually using one point (Point ID, X, Y, Z data) and creating 16 points from this.

    I would like to do this for around 50 points automatically hence excel would mean I'd have to cut and paste into and out of the spread sheet. I was hoping I could make something in C2 that I could set this up in?

    Any help would be appreciated. I've had a search through the array tutorial but not really managed to get any thing working.

    Cheers

  • I think Construct may not be the tool you are looking for to create this application.

    There is scirra.com/forum/plugin-csv-csv2array_topic46096.html

    for importing of csv, but I am unfamiliar with Construct's file output capabilities so I'm not sure.

  • Does this plug in help?

    Rex CSV plug in

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the replies. It appears C2 is not suited to what I am after. The CSV plugin mentioned I've been told can only read files, it cannot write to files. I guess I'll have to stick with Excel with VB or something. <img src="smileys/smiley19.gif" border="0" align="middle" />

  • You might to check these plugins before switching back to Excel !

    FileSaver

    FileReader

  • You can save to webstorage with the CSV plug-in.

    After changing the data in this table, you may want save it into webstorage.

    Expression: CSV.TableToString

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