We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf7aca commit 8788cc6Copy full SHA for 8788cc6
doc/specs/stdlib_io.md
@@ -273,7 +273,7 @@ This function reads the entirety of a specified ASCII file and returns its conte
273
274
### Syntax
275
276
-`call [[stdlib_io(module):getfile(interface)]] (fileName [, err] [, delete])`
+`call [[stdlib_io(module):getfile(function)]] (fileName [, err] [, delete=.false.])`
277
278
### Class
279
Function
@@ -411,8 +411,8 @@ program example_delete_file
411
! Delete a file with error handling
412
call delete_file("example.txt", err)
413
414
- if (err%is_error) then
415
- print *, "Failed to delete file:", err%message
+ if (err%error()) then
+ print *, "Failed to delete file:", err%print()
416
else
417
print *, "File deleted successfully."
418
end if
0 commit comments