6

I am using WebKit to rendering my HTML pages. Now, say I am browsing the page, I select some text while reading and want to save/write down the selected text on my local file system. Is any way to access (read/write) local file system using WebKit?

In case of Firefox, I can access localfile using XPCOM, nsiFile. Can anyone suggest what I should use to do the same with WebKit?

Yi Jiang
  • 49,435
  • 16
  • 136
  • 136
ganapati
  • 625
  • 2
  • 12
  • 24
  • possible duplicate of [EXE from JavaScript](http://stackoverflow.com/questions/3155231/exe-from-javascript) – Sarfraz Aug 10 '10 at 20:49

1 Answers1

4

Have a look at the File API. Support will depend on which flavor of Webkit you're using, but the nightlies should have some support.

miketaylr
  • 1,936
  • 3
  • 15
  • 14