Writetofile

From Mesham

Jump to: navigation, search

Overview

This writetofile[n,a] function will write the values of a to the file denoted by handle n.

  • Pass: The file handle to write to (type File) and also the value (any time) to write into file
  • Returns: Nothing

Example

var a:=openfile["hello.txt","r"];
writetofile[a,"hello - test"];
var q:=19;
writetofile[a,q];
closefile[a];
Personal tools