rocky84 rocky84 wrote:
> Hello pskink & all,
>
> i am more inerested in size of a particular file rather than other
> details as with ls -l command.
> i issued the below commands utility in perl to calculate the size of a
> file "abc.txt"
>
> *system("adb shell cd /data/app");
> $filename = "abc.txt";
> $size_of_file = -s $filename;
> print "The file Size is ". $size_of_file." Bytes"."\n";*
>
> but in o/p i am getting blank...
>
> The file Size is Bytes
> can anybody suggest me the most robust way to calculate the file size.
http://exampledepot.com/egs/java.io/GetLength.html
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android App Developer Training: http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
To unsubscribe from this group, send email to
android-beginners+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.