[Jslib] Opening files in Windows

John Wayne holzkoppwayne at web.de
Mon Aug 2 10:52:59 EDT 2004


normally you can use "C:\foo\bar.txt", this works on windows.

If you need more info the following link could be helpful.. you'll find 
a method to write into the users profile. Works platform independent: 


Sudhakar Chandra wrote:

> Hi,
> Another question.  I am able to create, open, read and write files 
> just fine on Linux (and OS X).  I have a question about file paths in 
> Windows.
> I have a file whose path is C:\foo\bar.txt
> What is the path I pass to File constructor?  I tried
> var f = new File('file:///C|/foo/bar.txt');
> but it doesn't work.
> Thanks.
> S.

-------------- next part --------------
Skipped content of type multipart/related

More information about the Jslib mailing list