Link to home
Start Free TrialLog in
Avatar of arichexe
arichexe

asked on

ReadAll in C#

How would I code the below VB snippet in C#?

Dim fso = CreateObject("Scripting.FileSystemObject")
Dim filei = fso.OpenTextfile(myFile, 1, False)
Dim myStr = filei.ReadAll
filei.Close()
Console.WriteLine(myStr)
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial