質問

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.

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top