I would say that the problem isn't editing the text file, but rather
figuring out where to enter your new information and how to break what
you have into structs, etc.

You can read the original text file in without a problem using CFFILE.
You might want to look at looping over the text using new lines as a
delimiter to break each line up into a separate value within the struct.
Then do a loop within that loop to break the line into separate values
and store that within the struct.  Once that is finished, just add and
delete stuff from your struct and then write some code to output it in
the format you want and write that to the file.  You might choose to
just use Arrays as well.  Use one array for each "field" you have.

John

-----Original Message-----
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 12:22 PM
To: CF-Talk
Subject: need to edit the Text File

I have a quick quesiton I have a text file which can have upto 10 lines
something like below.
The "|" is the delimeter.

Title:|Story|Link|Target

What I need to do is Have to edit those lines as well as insert the new
lines at the bottom.

How this can be done through CFFILE.
(I think thats the only way)

Thanks
Asim
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to