file path issue

Shibu Narayanan <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <70b97b62-aac9-4f0e-a775-d0e47297a06c@default>
I have a file path saved in a text configuration file.  I am not able to create the file.  If I hard code the file path, it works.

I have tried to give the file path as "C:\\myDir\\New.txt" as well as with single backslash "C:\myDir\New.txt".

 

 

 

Code below..

 

var filePath1 ='';

 

//this works

filePath1 = "C:\\myDir\\New.txt";

writeToFile(filePath1, "Hello World");

                

//this does not work

filePath1 = getfilePath1(); //the filepath URL is read from a text file

writeToFile(filePath1, "Hello World");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.