ReadFile

This command will read data from a file on the mobile device. String data or binary data can be read.

Group:Device Extensions


Syntax: [bOK =] Device.ReadFile(sFileName, vData)

bOK           (Boolean) Optional – the success or failure of the command.

sFileName   (String) specifies where on the mobile device the file should be found

vData         (Variant) contains the data read from the file. String or binary data is allowed.

Example:

Dim bOK As Boolean

Dim vData As Variant

Dim sFile As String

sFile = "\Program Files\MyFile.txt"

bOK = Device.ReadFile(sFile, vData)