Chapter 4
Navigating the File System, Basic I/O and Sockets
This chapter describes the Tcl tools for:
• Navigating a file system
• Finding files and their attributes
• Reading and writing data to files or other applications
• Using client- and server-side sockets
4.1 Navigating the File System
Most modern operating systems represent file systems as some form of tree-structured system, with a single root node, and drives and directories descending from that single node. They represent the trees as a string of words defining the drives and subdirectories separated by some character. Most operating systems provide a library of system calls to interact with the file system. Unfortunately, many modern operating systems use different symbols for ...
Get Tcl/Tk, 3rd 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.