Reading a file in addons not working for me with $.readFile('file.txt')


I’m trying to read a file in Addons folder (also a subfolder)


var myarray = $.readFile('inaddons.txt');
var my2array = $.readFile('hostHandler/HostHistory.txt);

but both arrays are empty. what is the correct path to read the files?


it’s ok, I got told it was ./addons first in the path so I tried and it works

var my2array = $.readFile('./addons/hostHandler/HostHistory.txt);