Dart SDK
dart:io
File
lengthSync
method
lengthSync
File
Properties
absolute
path
isAbsolute
parent
uri
Constructors
File
fromUri
Methods
create
createSync
rename
renameSync
copy
copySync
length
lengthSync
lastModified
lastModifiedSync
open
openSync
openRead
openWrite
readAsBytes
readAsBytesSync
readAsString
readAsStringSync
readAsLines
readAsLinesSync
writeAsBytes
writeAsBytesSync
writeAsString
writeAsStringSync
watch
resolveSymbolicLinks
deleteSync
stat
resolveSymbolicLinksSync
existsSync
delete
exists
statSync
int
lengthSync
( )
Synchronously get the length of the file.
Throws a
FileSystemException
if the operation fails.