Is this a file on the server whose contents you're getting as a big
String? If so, you could probably just use the split() method of String
to first split on carriage-return or newline, and then split each line
on whitespace.
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of djdyland
Sent: Wednesday, September 19, 2007 10:36 AM
To: [email protected]
Subject: [flexcoders] Parsing a flat file in flex?



Can anyone point me in the direction of how this might be done?
I want to parse or convert a flat file separated by spaces into xml or 
some sort of structure I can then use a dataprovider inside flex.. The 
file looks something like this

Date CoreTechInit ServerInit ImportPackets Merge
12/16/04 0 3 43 47
12/17/04 0 9 43 49
12/18/04 0 9 40 53
12/19/04 0 6 40 46
12/20/04 0 6 40 47
01/03/05 0 3 46 56
01/04/05 0 6 46 46

Thanks
Dylan



 

Reply via email to