Hi,
I have a file called list.txt and the file has the following data:
name,surname,1,1,1,1,1,1,1,p,w
I need to know how to import the data from the file and then assign
each of these to a variable.
For example:
name = []
surname = []
a=
b=
c=
d=
Each entry of data is a persons name and using a 1 for true and 0 for
false, I can manipulate the data after downloading.
At the moment, I'm not sure on how to use the string.split code to
separate the data components and then assign them to a variable. |
Clarification of Question by
macca1111-ga
on
16 Oct 2006 19:00 PDT
The file is:
"name surname",1,1,1,1,1,1,1,p,w
and I need each of these to be separate variables
ie
names = [" "]
a=1
b=1
...
h=["p"]
|