fileToArray functions work