This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Mon Jun 11, 2012 11:11 am
Hey!
How do i get the filesize of a file stored on server?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Mon Jun 11, 2012 12:23 pm
file size "path/to/file"
NML_375
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Mon Jun 11, 2012 1:42 pm
You mean like
Code: Select all
set rawnfo [read $nfofp [file size $nfofile]]
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Mon Jun 11, 2012 1:53 pm
Assuming $nfofile would be a valid path (including filename) of the file, yes... Though if the sole purpose is to read the contents of the file, just skip the second parameter to read, and it'll read the whole file up until the EOF.
(Though I must advice you, that nfo-files are generally associated with the wares-scene; which is not welcome here..)
NML_375
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Mon Jun 11, 2012 2:04 pm
I know the rules, but is what i have choosen to call it