Expand my Community achievements bar.

Who Me Too'd this topic

Avatar

Level 1
Level 1

I have a file on the Adobe Campaign application sever and I want to read the contents inside that file. I am able to search for the file and copy it to another

location but I want to open and read the file contents using the javascript activity. After running the javascript code i get this error:

BAS-010014 Cannot open file with read access (errno=2, No such file or directory) although the file does exist and im able to change the file location but cannot have direct access.

This is the Javascript code where I am attempting to read the file contents

var path = "Location of the file"

logInfo(path);

  var file = new File(path);

  file.open("r");

  for each(var line in file){

    logInfo(line);

   file.close();

}

Who Me Too'd this topic