File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ This subroutine reads the entirety of a specified ASCII file and returns its con
273
273
274
274
### Syntax
275
275
276
- ` call [[stdlib_io(module):getfile(function )]] (fileName, fileContents [, err] [, delete=.false.]) `
276
+ ` call [[stdlib_io(module):getfile(subroutine )]] (filename, file [, err] [, delete=.false.]) `
277
277
278
278
### Class
279
279
Function
@@ -282,15 +282,15 @@ Function
282
282
283
283
` filename ` : Shall be a character input containing the path to the ASCII file to read. It is an ` intent(in) ` argument.
284
284
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.
286
286
287
287
` err ` (optional): Shall be a ` type(state_type) ` variable. It is an ` intent(out) ` argument used for error handling.
288
288
289
289
` delete ` (optional): Shall be a ` logical ` flag. If ` .true. ` , the file is deleted after reading. Default is ` .false. ` . It is an ` intent(in) ` argument.
290
290
291
291
### Return values
292
292
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.
294
294
295
295
Raises ` STDLIB_IO_ERROR ` if the file is not found, cannot be opened, read, or deleted.
296
296
Exceptions trigger an ` error stop ` unless the optional ` err ` argument is provided.
You can’t perform that action at this time.
0 commit comments