September 2009
Intermediate to advanced
816 pages
19h 38m
English
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.
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 ...
Read now
Unlock full access