fcloseΒΆ
fclose closes a file.
- bool = fclose(fh)
Return Value
If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).
Parameters
- fh
fh is a file handle created by calling the fopen function.
Example
fh = fopen("/test.txt", "w");
a = rand(10,10);
fprintf(fh, "%10.2f\r\n", a);
fclose(fh);
EdCreate("/test.txt");
See also
id-324305