Hey
im new here to excuse the nubneess
i wanted to make a family tree thingy and wanted to do it in python
i wanted to make a way so that it could read a text file and auto add a new entry called summary which would include the initials,yr of birth and the childnum could any one help me out? at the moment ive gotten it to add the summary field but i cant figure out how to do the rest
[exampletxt]
Fname,LName,DOB,childnum
bob,smith,17/08/99/1

c = raw_input("Type something: ")
x = open("%s.txt" % c, "w")
y = "".join(List)
x.write(y)
x.close
x = open("%s.txt" % c, "r")
x.read

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.