FileOpen, FilePut, FileGet etc RRS feed

  • Question

  • Hi there.  I understand that in VB you can use the methods in the thread title; I'm not looking for code or anything, I just simply want to know is there any approach I can take in C# to achieve the same effect.  It's pretty simple in VB, but I think C# is 20x better than VB so would like to figure out a way to do this :) If you need any further info don't be afraid to ask.
    Monday, May 17, 2010 8:43 AM


  • They are .NET methods, not unique to VB.  Reference Microsoft.VisualBasic.  They are in the Microsoft.VisualBasic.FileSystem namespaceBut they are legacy VB6 methods and much better file methods exist in the .NET framework.  Look at BinaryReader and BinaryWriter.
    • Marked as answer by Harry Zhu Friday, May 21, 2010 8:19 AM
    Monday, May 17, 2010 2:10 PM