PDA

View Full Version : reading all cvs-files inside a folder and convert them into JSON



headkit
23 Aug 2011, 7:55 AM
hi there!

I want to build a local ExtJS4-App and for that I need to read all cvs-files inside a folder and convert them into JSON. so the first problem would be: reading all files inside a folder.
but how could that be managed?


thnx!

jay@moduscreate.com
23 Aug 2011, 11:05 AM
You would need server-side code to feed those up. Else, you would have to hard-code them in a list somewhere.

headkit
23 Aug 2011, 11:25 AM
shouldn't that be possible in times of chrome and other modern browsers with all its magic?

skirtle
23 Aug 2011, 8:56 PM
Quite the opposite, browsers have got tighter and tighter regarding this type of security. Access to the file-system is severely restricted. Even if you found a way to do it there's a good chance it would stop working in a future version of the browser. You'll need a server, I don't think you can get around that.

headkit
23 Aug 2011, 11:26 PM
can't believe chrome would go that direction when it needs to serve all the needs a operating system has to offer.

skirtle
24 Aug 2011, 12:01 AM
I see, you're a fan of the Microsoft strategy for writing an operating system:


Add security holes to web-browser.
...

headkit
24 Aug 2011, 12:05 AM
I see, you're a fan of the Microsoft strategy for writing an operating system:


Add security holes to web-browser.
...



:-)
no, I am fan of sandboxed apps inside browsers.

bodyboarder20
24 Aug 2011, 3:50 AM
:-)
no, I am fan of sandboxed apps inside browsers.

sandbox != file system access and manipulations