Version 2 of Answered Questions On: File & Socket I/O

Updated 2004-10-28 11:00:21



TABLE OF CONTENTS (File & Socket I/O):

  • Fconfigure Syntax

Fconfigure Syntax

I am trying to read a file and open it using the browsers mime type. I use the following piece of code to open the file.

    set fIn [ open $sFileName r ]
    fconfigure $fIn TestName.xxx -translation { binary binary }
    puts [ read $fIn $iContentLength ]
    close $fIn

things are working fine. The only annoying thing is that each time i try to open a file by clicking a hyperlink, it shows me a annoying save as window which i want to get rid of ..

Would appreciate any help here.

Thank you, Ashish

Peter Newman 2 April 2004: The "Testname.xxx" on your "fconfigure" line looks like an error to me. Get rid of it. But whether that's the cause of your problem I don't know. I don't really understand what you're trying to do. You'll need to give more details.