M Martin Bonner Mar 18, 2008 #2 Is there an equivalent in C#.NET for the VB.NET FreeFile() function? Click to expand... Well there's always: Microsoft.VisualBasic.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.
Is there an equivalent in C#.NET for the VB.NET FreeFile() function? Click to expand... Well there's always: Microsoft.VisualBasic.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.
Z zacks Mar 18, 2008 #3 Well there's always: Microsoft.VisualBasic.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. Click to expand... I realized I didn't need it after I posted the request. Thanks anyway.
Well there's always: Microsoft.VisualBasic.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. Click to expand... I realized I didn't need it after I posted the request. Thanks anyway.