Hello I am developing a Google Chrome extension and need to read some information from a .txt file, so I did some research but i just found how to choose a file and read from it, but what I need to do is just read from a path, like c:\file.txt, not choose it and after read. I would really appreciate if any one could help me, thanks.
Asked
Active
Viewed 105 times
0
-
1you cant http://stackoverflow.com/a/19813816/4769440 – Daniel Lizik Apr 04 '16 at 01:51
1 Answers
2
You should be able to use the runtime API to read local files if they are inside the app package directory using getPackageDirectoryEntry.
If you are trying to read random files then it's not possible without the user selecting it, js is sandboxed.

Javier Conde
- 2,553
- 17
- 25