File size: Difference between revisions

(→‎=={{header|Visual Basic}}==: added Visual Basic example)
(→‎{{header|OCaml}}: fixed link)
Line 866:
printFileSize "/input.txt" ;;</lang>
 
For files greater than Pervasives.max_int, one can use the module [http://caml.inria.fr/pub/docs/manual-ocaml/libref/UnixPervasives.LargeFile.html UnixPervasives.LargeFile]:
<lang ocaml>let printLargeFileSize filename =
let ic = open_in filename in