Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Has the Fso been broken apart?

Status
Not open for further replies.

ousoonerjoe

Programmer
Jun 12, 2007
925
US
In VB6, the FileSystemObject ('FSO') was the log writer's best friend. Could check the directory existence, file existence, and initialize your TextStreams from it. Does the FSO as I know it, no longer exist? Is this something that I would have to put back together in a class of my own making to get that same functionality I use to have from a Single object? I've dug through some books, ran across Google a few times, and unless I'm missing something, I don't see it, or anything like it, anywhere.

Is there an FSO equivalent in VB.Net 2005?

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
The System.IO namespace has what you are looking for, and probably much more.
 
yeah, I'm working with that now. Basically re-creating the wrapper of the FSO. The System.IO has a couple of places where the data types don't match and you'd think they would. for example, File.OpenWrite does not return a StreamWriter object, it returns the FileStream object, where as the File.AppendText does return a StreamWriter object. Not a big deal, just minor annoyances that a simple class can clean up.

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
You can use
System.IO.File.CreateText()
System.IO.File.OpenText()


Sweep
...if it works, you know the rest..
Always remember that Google is your friend

curse.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top