I am pulling a name, address, phone number from a text file. The items are delimited with a comma. I pull them into a variable. How can I pull them in or parse them out?
I'm not sure if this is a tuple or a list or what, but when I use vari=filename.read() it puts the variable as 'name,address,phone' and I cannot get them split up into separate fields.
Any advise would be appreciated, and I'm sorry about the format of this message I saw something about code wrap but it disappeared from my screen when I typed.
FILE=open(Data,'r')
vari=FILE.read()
The output shows 'vari' contains every item from FILE and I cannot separate them.