Be a Supporter!

Line-by-line File Input In As3.0

  • 493 Views
  • 1 Reply
New Topic Respond to this Topic
TheloniousMONK
TheloniousMONK
  • Member since: Feb. 11, 2001
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Line-by-line File Input In As3.0 2007-07-08 04:01:55 Reply

I have a talk coming up in a little under a month to present some research I have been doing, and I would like to have a graphical representation of my data. My simulation is coded in FORTRAN, and I output data arrays to a multitude of different text files, which are then read in by IDL line-by-line to produce plots. Now I want to include some graphics and different things to help illustrate what is going on. I could do this easily in C++, which I have some familiarity in object-oriented programming, but I would like to use Flash so I can have pretty graphics.

I know to do this in C++ one simple way would be to do a while loop. My pseudocode would look like...

count=0
while not endoffile
read line
array1(count)=line
count++

...and then I could use the data storred in this array later.

I have been unable to find a way to read files like this in ActionScript, as all the tutorials I have found require specific syntax in the file itself.

Thank you very much for your help.

SSFSO
SSFSO
  • Member since: Apr. 23, 2004
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Line-by-line File Input In As3.0 2007-07-08 16:57:52 Reply

I am not sure. I will research it and get back to you.