How to Read CSV Files in Godot Engine 3 🤖 Godot Read CSV Files
YouTube transcript, YouTube translate
A quick preview of the first subtitles so you know what the video covers.
hi I am iki today we are going to learn how to read a CSP file I need a place to pack what I read you can use a rich text label we also need to start creating our script I create a new function called load CSV I need a CSV file I can easily create it in LibreOffice or another software it is convenient to use the heater to categorize or filter data in my case I am creating a catalog of objects which can be used for the list of Game objects and inventory or a store a very important piece of information that I always add is an ID or index this is something very common in databases and it will help me to locate objects let's save it keep in mind that if you are exporting HTML5 there may be problems reading the CSV file we fixed this by changing its file extension I will save it to a new folder within my project which I will name data I will start rereading the file then I'm going to iterate reading each line written or in this case each row I proceed to display the result from the console it works we are going to display the same result in a rich text label to separate the results we will add a line break at the end