LoadFile
Back to ListDescription: Open file and retrieve its content into text return parameter
FileMaker Prototype:
Set Variable [$res; ACFU_LoadFile( string_filename)]
Category: BOOTSTRAP
NOTE: The bootstrap library comes preloaded in the plugin. Read more
Function source:
function LoadFile (string filename)
FunctionID 200;
string content;
int x;
x = open (filename, "r");
content = read (x);
close ( x ) ;
return content;
end
LoadFile returns the file content of a given file.
Example
On Mac:
Set Variable [$$userprefs; ACFU_LoadFile( "~/Documents/MyAppConfigs.txt")]
On Windows:
Set Variable [$$userprefs; ACFU_LoadFile( "C:\Users\mathilde\Documents\MyAppConfigs.txt")]
The function make it easier to retrieve content of a file, than applying the Insert from URL script step.
