#Get length of file?
1 messages · Page 1 of 1 (latest)
File has a stat method
Which returns a struct with a size field
Just note that it can be inaccurate
Specifically if its a special file
when would it be unaccurate and wdym by special file?
like you cant really get the size of /dev/stdin for example
Because thats a pipe not a regular file