Q:

Can somebody explain and solve my Value Error when reading in from a text file

For some reason my code(following) has brought up a Value Error which I cannot understand.  Please evaluate my code too.  You can find the project I am trying to do at 
http://www.ocr.org.uk/Images/226767-unit-j276-03-programming-project-task-1-sample-non-exam-assessment.pdf
fileid = "details for nea.txt"
ID = []
surname = []
forename = []
dob = []
addr = []
addrT = []
addrTh = []
addrF = []
addrFi = []
homNum = []
gend = []
tutor = []
schoolEm = []

def Read():
    file = open(fileid, "r")
    Record = file.readline()
    for line in Record:
        line = line.strip()
        A,B,C,D,E,F,G,H,I,J,K,L,M = line.split(',')
        ID.append(A)
        surname.append(B)
        forename.append(C)
        dob.append(D)
        addr.append(E)
        addrT.append(F)
        addrTh.append(G)
        addrF.append(H)
        addrFi.append(I)
        homNum.append(J)
        gend.append(K)
        tutor.append(L)
        schoolEm.append(M)   
    file.close()

def Save():
    Record = []
    file = open(fileid,"w")
    for i in range(len(ID)):
        Record.append(ID[i] +","+surname[i]+","+forename[i]+","+dob[i]+","+addr[i]+","+addrT[i]+","+addrTh[i]+","+addrF[i]+","+addrFi[i]+","+homNum[i]+","+gend[i]+","+tutor[i]+","+schoolEm[i]+"\n")
    file.writelines(Record)
    file.close()
Read()
print(ID)
print(surname)

The Text File I used goes as following:
  01,abe,fat,01/02/02,5,Stoney Lane,Stur,Dorset,DR101LM,0123,M,C,email@sc.  The lists titled addr, addrT represent the different lines of address. 

A:

put last three lines inside main.  Value error should go away

