Skip to content

Commit 6f87b42

Browse files
committed
Update stdlib_io.md
1 parent b2bb9b4 commit 6f87b42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/specs/stdlib_io.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ This subroutine reads the entirety of a specified ASCII file and returns its con
273273

274274
### Syntax
275275

276-
`call [[stdlib_io(module):getfile(function)]] (fileName, fileContents [, err] [, delete=.false.])`
276+
`call [[stdlib_io(module):getfile(subroutine)]] (filename, file [, err] [, delete=.false.])`
277277

278278
### Class
279279
Function
@@ -282,15 +282,15 @@ Function
282282

283283
`filename`: Shall be a character input containing the path to the ASCII file to read. It is an `intent(in)` argument.
284284

285-
`fileContents`: Shall be a `type(string_type)` variable containing the full content of the specified file. It is an `intent(out)` argument.
285+
`file`: Shall be a `type(string_type)` variable containing the full content of the specified file. It is an `intent(out)` argument.
286286

287287
`err` (optional): Shall be a `type(state_type)` variable. It is an `intent(out)` argument used for error handling.
288288

289289
`delete` (optional): Shall be a `logical` flag. If `.true.`, the file is deleted after reading. Default is `.false.`. It is an `intent(in)` argument.
290290

291291
### Return values
292292

293-
Output variable `fileContents` will contain the full content of the specified file.
293+
Output variable `file` will contain the full content of the specified file.
294294

295295
Raises `STDLIB_IO_ERROR` if the file is not found, cannot be opened, read, or deleted.
296296
Exceptions trigger an `error stop` unless the optional `err` argument is provided.

0 commit comments

Comments
 (0)