use readFromFile in script