How do you get the length of a very large file (>2Gb)?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   David_Lin
Posted On:   Wednesday, July 31, 2002 02:52 AM

I need to know the length of a very large file. I tried to use the length() method in the File class, but it returned 0 for anything larger than 2Gb.



Is there any other way to find the length of a file???



David

Re: How do you get the length of a very large file (>2Gb)?

Posted By:   Bhavesh_Shah  
Posted On:   Wednesday, July 31, 2002 03:11 AM

Not sure abt the cause of ur problem


Workaround:
May be you can divide the whole chunk into few smaller pieces and total up the size


Load single fragment in memory at a time


Bhavesh

About | Sitemap | Contact