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
`filename`: Shall be a character expression containing the name of the npz file to load from. The argument is `intent(in)`.
224
+
225
+
`arrays`: Shall be an allocatable array of type `array_wrapper_type` to load the content of the npz file to. This argument is `intent(out)`.
226
+
227
+
`iostat`: Default integer, contains status of loading to file, zero in case of success. This argument is `optional` and `intent(out)`.
228
+
229
+
`iomsg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an optional argument, error message will be dropped if not present. This argument is `intent(out)`.
230
+
231
+
`tmp_dir`: Shall be a character expression containing the name of the temporary directory to extract the npz file to. The argument is `optional` and `intent(in)`.
232
+
233
+
### Example
234
+
235
+
```fortran
236
+
{!example/io/example_load_npz.f90!}
237
+
```
238
+
239
+
## `save_npz`
240
+
241
+
### Status
242
+
243
+
Experimental
244
+
245
+
### Description
246
+
247
+
Saves an array of `array_wrapper_type` into a npz file.
`filename`: Shall be a character expression containing the name of the file that contains the arrays. This argument is `intent(in)`.
256
+
257
+
`arrays`: Shall be arrays of type `array_wrapper_type` that are meant to be saved to disk. This argument is `intent(in)`.
258
+
259
+
`iostat`: Default integer, contains status of saving to file, zero in case of success. This argument is `optional` and `intent(out)`.
260
+
261
+
`iomsg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an optional argument, error message will be dropped if not present. This argument is `intent(out)`.
262
+
263
+
`compressed`: Shall be a logical expression that determines if the npz file should be compressed. The argument is `optional` and `intent(in)`. The default value is `.false.`.
264
+
265
+
### Example
266
+
267
+
```fortran
268
+
{!example/io/example_save_npz.f90!}
269
+
```
270
+
208
271
## `getline`
209
272
210
273
### Status
@@ -260,3 +323,117 @@ Provides formats for all kinds as defined in the `stdlib_kinds` module.
260
323
```fortran
261
324
{!example/io/example_fmt_constants.f90!}
262
325
```
326
+
327
+
## `zip`
328
+
329
+
### Status
330
+
331
+
Experimental
332
+
333
+
### Description
334
+
335
+
Compresses a file or directory into a zip archive.
`output_file`: Character expression representing the name of the zip file to create. This argument is `intent(in)`.
344
+
345
+
`files`: Array of `string_type` representing the names of the files to compress. This argument is `intent(in)`.
346
+
347
+
`stat`: Default integer, contains status of reading from unit, zero in case of success. This argument is `optional` and `intent(out)`.
348
+
349
+
`msg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an `optional` argument, error message will be dropped if not present. This argument is `intent(out)`.
350
+
351
+
`compressed`: Logical expression that determines if the zip file should be compressed. The argument is `optional` and `intent(in)`. The default value is `.true.`.
`filename`: Character expression representing the name of the zip file to extract. This argument is `intent(in)`.
370
+
371
+
`outputdir`: Character expression representing the name of the directory to extract the zip file to. This argument is `intent(in)`.
372
+
373
+
`stat`: Default integer, contains status of reading from unit, zero in case of success. This argument is `optional` and `intent(out)`.
374
+
375
+
`msg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an `optional` argument, error message will be dropped if not present. This argument is `intent(out)`.
376
+
377
+
## `exists`
378
+
379
+
### Status
380
+
381
+
Experimental
382
+
383
+
### Description
384
+
385
+
Whether a file or directory exists at the given location in the filesystem.
`dir`: Character expression representing the name of the directory to list. This argument is `intent(in)`.
412
+
413
+
`files`: Array of `string_type` representing the names of the files in the directory. This argument is `intent(out)`.
414
+
415
+
`iostat`: Default integer, contains status of reading from unit, zero in case of success. This argument is `optional` and `intent(out)`.
416
+
417
+
`iomsg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an `optional` argument, error message will be dropped if not present. This argument is `intent(out)`.
`command`: Character expression representing the command to run. This argument is `intent(in)`.
436
+
437
+
`iostat`: Default integer, contains status of reading from unit, zero in case of success. This argument is `optional` and `intent(out)`.
438
+
439
+
`iomsg`: Deferred length character value, contains error message in case `iostat` is non-zero. It is an `optional` argument, error message will be dropped if not present. This argument is `intent(out)`.
0 commit comments