i want to implement the following in python, in C, it is like below, there is a structure
struct xyz {
char name[50];
char type[50];
char link[50];
char level[50];
}XYZ;
And i have created an array of this struct xyz as following:
XYZ array[] =
{ {"Mac", "char", "list","one"},
{"John", "char", "list","three"},
...
...
};
and accessing these by array[0], array[1] etc. In python script, suppose i have listed these array elements in a text file like below, e.g. file.txt
Mac, char, list, one
John, char, list, three
...
...
Now i have to read the file.txt, and store them into my python script similar to array of structs and access accordingly.