User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Quickest way to write a parsing / output program?? Page [1]  
bous
All American
11215 Posts
user info
edit post

basically i want to be able to have a formatted list of data in a text file and output each set of data into it's own file... what's the best way to do this you think? and this is for personal use.

i.e.

i want to have a list of cities associated by states...

format: (x,y,z are just delimiters)
"
north carolina nc
x
wilmington
y
company 1 here
company 2 here
x
raleigh
y
company bleh
x
cary
y
company bleh
z
florida fl
x
orlando
...
"
etc.


that will all output to separate files in the format wilmington-north-carolina-nc-bleh-blah.txt


all the files will have formatted text inside of them like:

format:
"
we offer this item in [CITY], [STATE] and blah bla blah blah.
[OTHER FIELD 1] can provide it.
[OTHER FIELD 2] can provide it.
etc
"



i'm tired and this is pretty lame specs and i'm too busy to really get down and do it right now so am wondering the quickest and easiest way to do this or if there's a program already available i can use to do this?

5/31/2006 12:14:17 AM

MiniMe_877
All American
4414 Posts
user info
edit post

perl

5/31/2006 12:25:13 AM

State409c
Suspended
19558 Posts
user info
edit post

You could do this in perl in 20-30 lines.

5/31/2006 2:50:32 AM

 Message Boards » Tech Talk » Quickest way to write a parsing / output program?? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.