Modules for Manipulating Files
The functions for file manipulation are organized into four modules.
file-
This has routines for opening, closing, reading, and writing files; listing directories; and so on. A short summary of some of the more frequently used functions in
fileis shown in Table 7, Summary of file operations (in modulefile). For full details, consult the manual page for thefilemodule. filename-
This module has routines that manipulate filenames in a platform-independent manner, so you can run the same code on a number of different operating systems.
filelib-
This module is an extension to
file, which contains a number of utilities for listing files, checking file types, and so on. Most of these are written using the functions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access