printf FILEHANDLE (format_string, data...); If you omit the file handle, printf outputs to the default-currently selected-file handle. printf("%s\n", "This is a string");