Could anyone please help me how to read and write a text file in vb.net
reading and writing a text file
Page 1 of 17 Replies - 443 Views - Last Post: 24 November 2011 - 01:43 AM
Replies To: reading and writing a text file
#3
Re: reading and writing a text file
Posted 23 November 2011 - 10:17 PM
1. Open Ie
2. Go to google.com
3. Enter 'vb.net read and write text file'
4. Click Search button
Then links like this are returned
How to: Read Text from a File
How to: Write Text to a File
2. Go to google.com
3. Enter 'vb.net read and write text file'
4. Click Search button
Then links like this are returned
How to: Read Text from a File
How to: Write Text to a File
#4
Re: reading and writing a text file
Posted 23 November 2011 - 10:29 PM
Jeff H, on 23 November 2011 - 10:17 PM, said:
1. Open Ie
2. Go to google.com
3. Enter 'vb.net read and write text file'
4. Click Search button
Then links like this are returned
How to: Read Text from a File
How to: Write Text to a File
2. Go to google.com
3. Enter 'vb.net read and write text file'
4. Click Search button
Then links like this are returned
How to: Read Text from a File
How to: Write Text to a File
Can you show me some sample code on how to open IE ? I am a new LOL
#5
Re: reading and writing a text file
Posted 23 November 2011 - 11:33 PM
There are many ways - look in the IO namespace. Some good ideas are:
Io.File.ReadAllText
Io.File.WriteAllText
The StreamReader object
The StreamWriter object.
For details, look up:
Example msdn
replace example with the things I mentioned above.
Io.File.ReadAllText
Io.File.WriteAllText
The StreamReader object
The StreamWriter object.
For details, look up:
Example msdn
replace example with the things I mentioned above.
#6
Re: reading and writing a text file
Posted 24 November 2011 - 12:11 AM
I'm able to read and write a file now...But how to do the one below
1)Function to read the file into an in-memory structure of lists.
2)Function to write the file fromm memory to any folder.
1)Function to read the file into an in-memory structure of lists.
2)Function to write the file fromm memory to any folder.
#7
Re: reading and writing a text file
Posted 24 November 2011 - 12:43 AM
Once again, the StreamReader and StreamWriter, which are incredibly versatile.
#8
Re: reading and writing a text file
Posted 24 November 2011 - 01:43 AM
ok..Can u explain it to me with an example(with few lines of code)??
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|