You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/specs/stdlib_io.md
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -260,3 +260,56 @@ Provides formats for all kinds as defined in the `stdlib_kinds` module.
260
260
```fortran
261
261
{!example/io/example_fmt_constants.f90!}
262
262
```
263
+
264
+
## `getfile` - Read a whole ASCII file into a string variable
265
+
266
+
### Status
267
+
268
+
Experimental
269
+
270
+
### Description
271
+
272
+
This function reads the entirety of a specified ASCII file and returns its content as a string. The function provides an optional error-handling mechanism via the `state_type` class. If the `err` argument is not provided, exceptions will trigger an `error stop`. The function also supports an optional flag to delete the file after reading.
0 commit comments