How can i display the merged contents of local files from a js+html page running locally
I have a bunch of files(not necessarily text files) on disk. I need to display the merged contents of all these files in a html page opened locally on Load. Is this possible without using Active-X? My objective is to create a summary of a set of files and at the same time to keep the summary file small. Infact most of the files whose data I need to summarize are html files.
If this is possible can I also choose only certain sections of t开发者_如何学Goext in each file to be part of the summary?
It would be great if the solution would have a wide browser support. Any example would help a lot.
Thanks.
Open the files in iframes then pull the source of each and process it. Since it is coming from your own machine, there should not be any cross-domain problem.
Javascript does not have access to the clients file system, therefore I do not believe this is possible. See this post: Local file access with javascript
精彩评论