I'm trying to go for a bit more dynamic scripts which are managing files and withdraws information from them. Although, I just can't seem to really understand how file managing works in Tcl. If anyone would be willing to help, it'd be great! What I need to know is:
- When do I need to open/close files? Let's say I want a file to be accessed whenever the bind is activated.
- How do I tell it to access specific lines in a file?
- How do I write one line to the last line in the file?