Discussion on:
View:
Show:
Really good article on the IO namespace. I need to do this a lot and this was a great introduction on how .NET goes about reading and writing files. Thanks.
This article made me recall how simple was I/O in C and BASIC. Trying to learn this basic I/O stuff in Java was pretty challenging. I wonder if C# is as complicated as Java in this respect.
Does anybody know why Java had to be so complicated? I just wonder...
Luis
Does anybody know why Java had to be so complicated? I just wonder...
Luis
The ReadToEnd method is up to 3 times slower than its Visual Basic 6 counterpart. I'd strongly suggest using ReadBlock instead.
This functionality is available in VB6 using the FileSystemObject in the Microsoft Scripting Runtime and its almost identical. Good article though.
Hello,
How can I determined if a Text File is being created using my application?
Thanks Marsh
How can I determined if a Text File is being created using my application?
Thanks Marsh
How Use via HTTP ex :"http://ptxserver.net/gni/update.txt" only read in texbox ?
lx.nuno.rodrigues@gmail.com
lx.nuno.rodrigues@gmail.com
Hi good article!
i have a question
how to read a specific row in a text file and modified for a new file?
example :
input text file
a b c d e f
and the new file will be :
b c a f e
Please help me by send to may mail andii2008@yahoo.com
Thank you and best regards!!
i have a question
how to read a specific row in a text file and modified for a new file?
example :
input text file
a b c d e f
and the new file will be :
b c a f e
Please help me by send to may mail andii2008@yahoo.com
Thank you and best regards!!
Source code on file writing also available on:
http://bitsbyta.blogspot.com/2011/02/how-to-write-file-vbnet.html
Source code on file reading also available on:
http://bitsbyta.blogspot.com/2011/02/how-to-read-file-vbnet.html
http://bitsbyta.blogspot.com/2011/02/how-to-write-file-vbnet.html
Source code on file reading also available on:
http://bitsbyta.blogspot.com/2011/02/how-to-read-file-vbnet.html
I'm amazed that someone who understands the new way of writing to a text file would call the old way "confusing". For those that aren't familiar, here's the old way:
Open "C:\filename.txt" For Output As #1
Print #1, "Write a line to the file"
Close #1
And here's the new way:
Dim oFile as System.IO.File
Dim oWrite as System.IO.StreamWriter
oWrite = oFile.CreateText("C:\sample.txt")
oWrite.WriteLine("Write a line to the file")
oWrite.Close()
I know the old way isn't object oriented, but to call it confusing in comparison to the new way is simply ridiculous.
Open "C:\filename.txt" For Output As #1
Print #1, "Write a line to the file"
Close #1
And here's the new way:
Dim oFile as System.IO.File
Dim oWrite as System.IO.StreamWriter
oWrite = oFile.CreateText("C:\sample.txt")
oWrite.WriteLine("Write a line to the file")
oWrite.Close()
I know the old way isn't object oriented, but to call it confusing in comparison to the new way is simply ridiculous.
my friend's aunt makes $79 every hour on the internet. She has been out of work for 9 months but last month her paycheck was $8957 just working on the internet for a few hours. Go to this web site lazycash2.com
- Keyboard Shortcuts:
- Prev
- Next
- Toggle









































