WriteColumnToFile

Definition:

WriteColumnToFile(filename, datasource, column)

 

Description:

Output a specified column in the current record for a specified Data Source to a local file on the mobile device.

 

Platforms:

Android, Universal Windows, Windows Desktop

 

Parameters:

filename - required

 

datasource - required

Specifies the Data Source to which the file will be written – click here for the format of this parameter.

 

column - required

Name of the column to output to the file.

 

Returns:

nothing

 

Notes:

  • If the specified file doesn't already exist, it will be created.

  • If the file already exists the data string will literally be appended to the end of any existing content in the file.

  • You can use this Method to output binary data such as an image or pdf file.

  • If you want to overwrite an existing file instead of appending data to it, you can delete the existing file first using the DeleteFile Method.


See also:

DeleteFile