J
Joshua Nunn
I am reading in a text file of about 25 megs, using a streamreader
class. Now this text file was generated using a DataBUS programming
language, now known as PL/B, and being used as a database, that just
happens to be a flat text file. What I need to be able to do is to read
in a line from this text file, edit a few fields in this text stream
(which I can do), and then write the editted line back out at the same
formpointer position. I can do this easily by writing out to a seperate
file, but I'm hoping to write back out to the same file to prevent
dataloss. Any suggestions on how to use streamreader to read in a line
and then overwrite the previous line with the editted line at the same
form pointer position? Should I even be using the streamreader/writer
class, or should I be using the filestream class? Please help, I'm
lost..
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
class. Now this text file was generated using a DataBUS programming
language, now known as PL/B, and being used as a database, that just
happens to be a flat text file. What I need to be able to do is to read
in a line from this text file, edit a few fields in this text stream
(which I can do), and then write the editted line back out at the same
formpointer position. I can do this easily by writing out to a seperate
file, but I'm hoping to write back out to the same file to prevent
dataloss. Any suggestions on how to use streamreader to read in a line
and then overwrite the previous line with the editted line at the same
form pointer position? Should I even be using the streamreader/writer
class, or should I be using the filestream class? Please help, I'm
lost..

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!