语言

Menu
Sites
Language
Read Data from Text File

Hi,

Can anyone give me any information on how to read from text files ? text files may contain normal raw data / xml tag based data. I have tried through XMLHttpRequest(). But it is not working.

 

 

响应

3 回复
Sanjeev BA

If you want to open a local file, you could refer to FileSystem API.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.device.apireference/tizen/filesystem.html

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.web.device.apireference/tizen/filesystem.html#File::openStream

colin Rao

XMLHttpRequest() is used to get a remote html/xml file via HTTP protocol. For read/write a local txt file, suggest to use the FileSystem API as Sanjeev BA comments. Also, as I know Tizen don't support the xml format local file manipulate currently, there's no such API to use.

AVSukhov

Hello,

This topic can help you:

https://developer.tizen.org/forums/web-application-development/tizen-wearable-access-local-xml-file