ASCII_Read + ASCII_Save

Reads or Saves text into file, giving its full path.
Same as VBA version or ASP version, but in VB.NET


Public

Tested

My Own Work
Public Function ASCII_Read(FullfilePath)
 Dim sFileContent As String = ""
 If My.Computer.FileSystem.FileExists(FullfilePath) Then
  sFileContent = My.Computer.FileSystem.ReadAllText(FullfilePath)
 End If
 Return sFileContent
End Function
Public Sub ASCII_Save(FullfilePath, FileContent)
 My.Computer.FileSystem.WriteAllText(FullfilePath, FileContent, False)
End Sub

FullfilePath
or
FullfilePath, FileContent

Views 182 Downloads 33

VB.Net File System
ANmarAmdeen
655
Revisions

v1.0