Write string str to file fp. File pointer fp should have been obtained from a call to fopen or freopen or be the standard input (stdin).
SEE ALSO: fopen,freopen,fwrite,matcvt,cvtmat.