Function readTextFile

Reads or writes a file in one call. It might internally yield, but is generally blocking if it returns values. The callback ones depend on the implementation.

string readTextFile(
  string filename,
  string fileEncoding = null
);

Tip

prefer the callback ones. If settings where async is possible, it will do async, and if not, it will sync.

NOT FULLY IMPLEMENTED