Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a line in the middle of an existing .txt file

Status
Not open for further replies.

misubud

IS-IT--Management
May 29, 2002
25
NZ
Hello,
I'm ok reading from .txt files and writing to new ones...
BUT
I'm wanting to work my way through an alphabetised text file and insert a line mid way through the file.
Is it a simple matter of

open file for input as xxx
write xxx, "blah blah"

when im at the appropriate place?
or is there an insert line statement(or similar) required?

Thanks in advance

 


Hi,

open file for input as xxx
write xxx, "blah blah"

when im at the appropriate place...

write that line.


Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top