Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,542 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,814 people online right now. Registration is fast and FREE... Join Now!




Edititng the File while Reading it

 
Reply to this topicStart new topic

Edititng the File while Reading it

maha1608
20 Aug, 2008 - 10:05 PM
Post #1

New D.I.C Head
*

Joined: 17 Jul, 2008
Posts: 17

Hi ,

I am using Vb.net , MY aim is edit the File whiling reading it. When ever i search i get to write in text file. I am reading a line from a file, suppose i see some error in it , i need to change it in the file itself, How can it be done ?

Thanks in advance
User is offlineProfile CardPM
+Quote Post

modi123_1
RE: Edititng The File While Reading It
21 Aug, 2008 - 07:15 AM
Post #2

D.I.C Addict
Group Icon

Joined: 12 Jun, 2008
Posts: 531



Thanked: 13 times
Dream Kudos: 100
My Contributions
Why would you ever want to write to a file you are read? That is just BAD practice. What you should do is READ the file in.. manipulate it in memory.. and when you are done write the results... While in memory you can claim you are "writing" while "reading".
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:39PM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month