With this function you can get GameMaker Studio 2 to check the currently opened file to see if the line being read has finished. The function returns true if the end of the line has been reached and false otherwise.
|fileid||The id of the file to check.|
var file = file_text_open_read(working_directory +
var num = 0; while (!file_text_eoln(file))
score_array[num] = file_text_read_real(file);
The above code opens a file for reading then reads the values from a single line into an array.