Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Save two string fields into a Excel spreadsheet?

Discussion in 'Scripting' started by Rob21894, Mar 26, 2016.

  1. Rob21894

    Rob21894

    Joined:
    Nov 21, 2013
    Posts:
    309
    Hey, I was wondering if it would be possible to save string fields for example

    String firstName
    String LastName

    Firstname would save in Column 1, lastname in column 2,

    When more entries are added, it will will iterate down the rows.


    http://wiki.unity3d.com/index.php/Load_Data_from_Excel_2003

    is possible to load data, but is it possible to save?

    Any help would be appreciated :)
     
  2. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
  3. ericbegue

    ericbegue

    Joined:
    May 31, 2013
    Posts:
    1,353
    Another option is to output to a csv (comma separated values) file. It's a simple file format recognized by most of spreadcheat editor.
     
    MV10 and Kiwasi like this.
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Csv is probably the simplest for this task.
     
  5. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    Bah! If it isn't worth complicating, it isn't worth doing! (Ok, I forgot about CSV...)
     
    Kiwasi likes this.