Question

I need a method like FileWriter.seek(offset) for FileReader.

I searched a lot but didn't found any thing? It is so strange for me that FileWriter has seek method, but FileReader does not have it! I wanna read the 1MB within a 100MB file. I really don't wanna load the whole file.

Was it helpful?

Solution

There is no seek method for the FileReader. It is not part of the W3C specification for the FileReader interface.

Update: As of PhoneGap 2.4.0 the File.slice() method will be implemented so you should pretty much get what you want from that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top