Handling Strings / Files.

Posted by GuptiRanj. on May 12, 2001 at 02:34:01:

How would i capture all the text in a .txt to work with? I don't know how i'd go about working with the whole of the information in a .txt. EG:

c:\Example1.txt:
Line1 in example1.txt
Line2 in example1.txt

Line4 in example1.txt
Line5 in example1.txt

Now how would i take this information and say put it in the same format as above into another .txt, c:\example2.txt.

This without obviously just duplicating the first .txt. Basically i'm wanting to know how to store the information in a .txt and manipulate it.

Related Articles and Replies: