开发者

How do you open a file line by line in phonegap?

开发者 https://www.devze.com 2023-03-10 00:03 出处:网络
I\'m looking to do some pretty data-intensive stuff using phonegap. The f开发者_C百科irst thing I looked at was to stream-read a JSON file line by line to collect the data needed. Unfortunately, I can

I'm looking to do some pretty data-intensive stuff using phonegap. The f开发者_C百科irst thing I looked at was to stream-read a JSON file line by line to collect the data needed. Unfortunately, I can't seem to find a way. Is there a memory-effective way of stream-reading a file from phonegap?

John.


What you are trying to do is currently not possible with the standard phonegap api.

Files are written completely into a DOMString right now.

If you really need this you can take a look into writing a phonegap plugin that returns files by line. Here the link to the wiki to get you starting writing plugins: http://wiki.phonegap.com/w/page/36752779/PhoneGap-Plugins

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号