I want to store name, phonenumber, location in a file. how to store multiple data?

Hello i want to store 3 variables name, phone, and location in a file named “/sample,txt” I am learning new. please help.

Use the File component (in Storage) for this.


If you want to save data in csv format then separate each element with a comma (,) - there should be no other commas in your elements, and end the line with a “\n” (no quotes)

For cases where you might be missing values like phone number, you can use JSON format, which is generated automatically when you convert a dictionary data type to text format.

Thanks Tima12 for your help.