Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. OrbitUK

    Closing files with extensions

    I have tried close $WriteFile still get the permission denied on deleting Closed.1. Heres more of the code if its any use - I create a directory called Cleaned and move the resulting files there (not the Cleaned.x files) cd [file dirname $DirPath] file mkdir Cleaned set CustomerCopy [open...
  2. OrbitUK

    Closing files with extensions

    Thanks for your reply, im still getting the file permissions error. Heres the code :- set CustomerCopy [open $DirPath r] foreach line [split [read $CustomerCopy] ~] { set WriteFile [open Cleaned.$fileno a+] puts $WriteFile "$line" close $WriteFile.$fileno This basically reads a bunch of...
  3. OrbitUK

    Closing files with extensions

    Hi all - I have some code which opens multiple files with extentions such as .1 .2 .3 etc.. I want to be able to delete these files at the end of code execution to 'clean up' for the user. I have a TK interface with underlying TK/TCL code. However I am getting a permission denied on deleting...

Part and Inventory Search

Back
Top