Opening and reading a file in Deluge for use in a sort of bulk update

Opening and reading a file in Deluge for use in a sort of bulk update

I want to be able to update a large number of projects, and the tasks contained in them, by using a file.  The use case would be that i would have a record per project and data that would apply to various tasks in columns in the file.  The file would be delimited to indicate the columns.

So I would open the file, read the first record and parse it, and execute update to the corresponding tasks.  Then move on to the next record and repeat until EOF.

I've tried this to read a file:

  1.  fileVariable = invokeUrl
  2.  [
  3.  url: "I would have the file url here" 
  4.  type: GET
  5.  ];
  6.  

  7. response = fileVariable.getFileContent();
  8. info response;
  9.  
  10.  return "success";
when i do this, i get the following message:



Can anyone help me out here.  Extra points if you can help with the parsing of a record and moving to the next.

If there is a better way to update a large number of projects and their tasks, I'd be open to it.  When last I checked, importing project is only workable a single project at a time, so this is not really a viable option.