readFile

Top  Previous  Next

Reads the whole contents of a file and stores it in a string

Syntax

readFile(path)

Parameters

path

Full path to the file to read

Return code

A string containing the file's content.

Sample

var F1=readFile("D:\\myfile.txt");