11. Accessing Files
This chapter describes Tcl’s commands for dealing with files and directories. The commands allow you to read and write files sequentially or in a random-access fashion. They also allow you to retrieve information kept by the system about files, such as the time of last access. You can rename, copy, and delete files. Last, these commands can be used to manipulate file names; for example, you can remove the extension from a file name or find the names of all files that match a particular pattern.
11.1 Commands Presented in This Chapter
This chapter describes the following commands for manipulating files and directories. Most of these commands also work with interprocess pipes and network sockets, covered in Chapter 12. In ...
Get Tcl and the Tk Toolkit, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.