|
-
April 21st, 1999, 06:58 PM
#1
Urgent!! finding a string in a file
I got a file here,and there are a number of data. What I need to do is that I will go through the file, and finding the letter "T" in the file. Then I save the letter and all related data into another new file. My question is how to go through the file and find the letter"T" in the file. And how to put the letter and the related data into the new file??
Anyone can help me out, I will very appreciated.
-
April 21st, 1999, 08:50 PM
#2
Re: Urgent!! finding a string in a file
read a chunk of the file into memeory and scan for a 'T'
then, you need of course to know what the SIZE of the related data is already, so read it from memory and save it in a the new file
sally
-
April 21st, 1999, 10:19 PM
#3
Re: Urgent!! finding a string in a file
Can you explain more detail of the content of your file? Maybe someone can give you more hints.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|