I have a file that has three messages in it. the messages are separated by *** I would like to go into the file and read the bytes and when it gets to a *** stop and write that message to a different file then go until the next *** and write that to file and so on.. can anyone help explain what I should use? a snippet etc? thanks a million!
Michael Morris
Ranch Hand
Joined: Jan 30, 2002
Posts: 3451
posted
0
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
roy williams
Greenhorn
Joined: Mar 13, 2003
Posts: 10
posted
0
thanks alot. Are you saying read the entire file and turn it into a string then use this tokeniizer??
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
0
Yup. It's not the only way to do this, but it's probably the easiest (unless the file is really long and memory usage is a problem).
"I'm not back." - Bill Harding, Twister
roy williams
Greenhorn
Joined: Mar 13, 2003
Posts: 10
posted
0
I will give it a try. Thank you very much for your replies. have a great day!
Maulin Vasavada
Ranch Hand
Joined: Nov 04, 2001
Posts: 1865
posted
0
hi Roy if u want to use little complex thing then u can try StreamTokenizer as well... regards maulin