简体   繁体   中英

How to read file in android using PhoneGap Javascript

How can you read a file in Android using PhoneGap and Javascript? I tried several snippets of code given at different sites but failed to do so. Actually I am a beginner and know very little about Phonegap. I also tried FileReader function but don't know where to put the file which will be readed by this function.

The FileWriter full example at http://docs.phonegap.com is designed to work with the FileReader full example. FileWriter writes readme.txt and FileReader reads it back in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM