You can open the console file like any other textfile:
var aConsLines = []; var sLine; var path = app.UserSettingsDir; var ConsFileName = path + "\\" + "consfile.txt"; var oConsFile = new File(ConsFileName); oConsFile.open('r'); // option 1 var sFileContent = oConsFile.read(); // option 2 /* // or you put it in an array while(!oConsFile.eof) { sLine = oConsFile.readln(); aConsLines.push(sLine); } */ oConsFile.close();