Input and output

print(x): display the contents of x
readline(): read a line from user input
writeline(f, mesg): write mesg to file f
sprintf(format, x1, x2, ...: formatted text output, returns the string
printf(format, x1, x2, ...): formatted text output, prints the string
fprintf(file, format, x1, x2, ...): formatted text output, prints the string to file
sscanf(str, format): formatted text input, reading from string, returns a list if more than one conversions are made
fscanf(f, str, format): formatted text input, reading from file f



oz 2009-12-22