Overview
| Artifact ID: | 7bc473235dcee8c02051be513d95e7ae729ecf98 |
|---|---|
| Ticket: | 1027690fffffffffffffffffffffffffffffffff
read $channel [file size "myfile"] doesn't work in 8.4 head |
| User & Date: | wobster on 2004-09-14 17:43:46 |
Changes
- icomment:
Logged In: YES user_id=60261 Thanks for the tip. It appears that the problem is OS-specific. It doesn't work on Solaris and Irix, but does on Linux. Actually, it looks like it's a problem with read. I tried this test as well: % pwd /tmp/bak/tcl8.4.7/unix % set f [open "Makefile" r] file6 % puts [file size "Makefile"] 50346 % read $f [file size "Makefile"] % read $f $size ; # nothing printed % read $f 50346 # Generated automatically from Makefile.in by configure. ... For some reason, this works as well: read $f [expr [file size "Makefile"] - 1] The file size is actually 50346 by the way according to "ls -l" and "wc -c".
- login: "wobster"
- mimetype: "text/plain"
- username: "wobster"