Go to: Return value. Related commands. Examples.

Synopsis

fprint <int> <int | float | string | vector>

This command is functionally equivalent to the print function. The difference being the mandatory file identifier argument.

Return value

None

Related commands

print, popen, pclose, feof, fgetline, fgetword, fopen, fclose, fflush, fread, frewind, fwrite

Examples


	// Print a string into a file
	//
	$exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" );
	$fileId=`fopen $exampleFileName "w"`;
	fprint $fileId "Hello there\n";
	fclose $fileId;