User Tag List

Results 1 to 7 of 7

Thread: reading a text file for lots of data (help?)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    reading a text file for lots of data (help?)

    Hey everyone,

    I need to read data from a file in the following format, and I can't figure out how to pull it off...

    1,32
    1,18
    2,88
    3,88
    9999,9999

    I need to read the data one row at a time and put each of the two values into variables.

    for instance, using the data above, i'll read 1,32 and a variable called Type will be assigned the value 1 while a second variable called Strength will be assigned the value 32.

    after that row of data is processed, I need to grab the next row and continue until the terminating values of 9999,9999 are hit.

    I thought maybe the ini object would work, but after looking at popcorn's tutorial, i'm thinking it won't work.

    Thanks for any help you guys can offer!

    Tuna

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    Use the list object, and the string parser.

    Set The source string which ever line you want, and the delimiter to ','.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    Thanks for the tip... I'm trying to figure out how to accomplish this, but I'm not getting anywhere.

    if you have time, can you be more specific as to how this should work?

    Thanks Seele...

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    i may be on to something... not sure if it will work, but trying it out now... feel free to send additional info if you can!

    thanks!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    nope, i can't get it so far...

  6. #6
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    Okey,

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=95748#Post95748

    hopefully that helps. :grin:

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: reading a text file for lots of data (help?)

    thank you very much... this is a huge help!

Similar Threads

  1. Reading a Unicode text file?
    By netninja in forum Unicode Export Module Version 2.0
    Replies: 18
    Last Post: 25th June 2012, 11:05 AM
  2. Reading a text- or csv file - possible?
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2009, 01:23 PM
  3. Reading from a text file.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st May 2008, 06:01 AM
  4. Retrieve data of text file ASCII
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd April 2008, 03:56 AM
  5. Reading text from file
    By KenTankerous in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th March 2007, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •