VB FreeFile() Function in C#?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zacks@construction-imaging.com

    VB FreeFile() Function in C#?

    Is there an equivalent in C#.NET for the VB.NET FreeFile() function?
  • Martin Bonner

    #2
    Re: VB FreeFile() Function in C#?

    On Mar 18, 3:53 pm, za...@construct ion-imaging.com wrote:
    Is there an equivalent in C#.NET for the VB.NET FreeFile() function?
    Well there's always:

    Microsoft.Visua lBasic.FreeFile ()

    .... but it isn't much use because in C# you don't supply a filenumber
    to the functions which open a file, so you don't need FreeFile().

    Look up "How to: Read Text from a File" in MSDN.

    Comment

    • zacks@construction-imaging.com

      #3
      Re: VB FreeFile() Function in C#?

      On Mar 18, 12:05 pm, Martin Bonner <martinfro...@y ahoo.co.ukwrote :
      On Mar 18, 3:53 pm, za...@construct ion-imaging.com wrote:
      >
      Is there an equivalent in C#.NET for the VB.NET FreeFile() function?
      >
      Well there's always:
      >
          Microsoft.Visua lBasic.FreeFile ()
      >
      ... but it isn't much use because in C# you don't supply a filenumber
      to the functions which open a file, so you don't need FreeFile().
      >
      Look up "How to: Read Text from a File" in MSDN.
      I realized I didn't need it after I posted the request. Thanks anyway.

      Comment

      Working...