Framework EDI Reference. Methods and Properties
ediFile. GetStringContent

Returns the contents of the file.

Syntax:

Parameters:

 

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
Dim oFile As Fredi.ediFile
Dim sContent As String

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem

' Get file object.
Set oFile = oFileSystem.GetFile(App.Path & "\TestFile.TXT")

sContent = oFile.GetStringContent(EncodeType_Base64)

MsgBox "File content in Base64: " & sContent

Samples