File Processing

Suman Lata Tripathi, Abhishek Kumar, Jyotirmoy Pathak · 2022

This chapter describes the file-related commands of the Tool command language (Tcl) script. The file processing operation of Tcl supports accessing content to read from as well as write to a file on a disk. Tcl supports an interface with the file system using a buffering mechanism. A temporary file ID is assigned to each of the files, and an individual file can be accessed through the given ID. File accessing activity starts with the opening of a file with the open command and finishes with the closing of a file with the close command. Different commands are associated with reading from and writing to the file. These commands are helpful for the electronic design automation (EDA) tool to store the internal result. The Tcl file commands are file, open, read, get, puts, close, eof, seek, tell, and flush. The seek command changes the sequence of accessing bytes from a file.

Read the paper · More papers on PaperTik