GMS function :load_csv() in Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fish2091852127

How to implement the function “load_csv()” of GMS(gamemakerstudio) in Godot and read the corresponding values in the CSV file and store in a Variable[x,y]?

get_csv_line():Its just read one line and only first line (By seek() change but too troubles)

:bust_in_silhouette: Reply From: flurick

There is a basic example in the docs but what you probably want to do is loop through each line of the csv file while there is more to read of the file

while not save_game.eof_reached():
  for l in get_csv_line():