Does anyone have experience reading text files from outside a mobile app built with XDK Intel?
I attempted to use the following code, but unfortunately it's not yielding the desired outcome.
function readFile (filepath){
var txtFile = "C:\test.txt";
var file = new File(txtFile);
file.open("r"); // open file with read access
var str = "";
while (!file.eof) {
// read each line of text
str += file.readln() + "\n";
}
file.close();
alert(str);
}