| View previous topic :: View next topic |
| Author |
Message |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Mon Jun 11, 2012 11:11 am Post subject: Get file size |
|
|
Hey!
How do i get the filesize of a file stored on server? _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Jun 11, 2012 12:23 pm Post subject: |
|
|
file size "path/to/file" _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Mon Jun 11, 2012 1:42 pm Post subject: |
|
|
You mean like | Code: | | set rawnfo [read $nfofp [file size $nfofile]] |
_________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Jun 11, 2012 1:53 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Mon Jun 11, 2012 2:04 pm Post subject: |
|
|
I know the rules, but is what i have choosen to call it  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
|