Marko Limbek wrote:
I put the recommended codesavFileName = "C:/dropbox/Exc_MarkoL_Zenel/Valicon/crosstabs/Tabela/ipk108_kosovo_data_finale_c1-1.sav" with SavReader(savFileName) as sav: header = sav.next() for line in sav: process(line) but I am get errors
Will you tell us what errors, or should we just guess? Since I love guessing games, let me try... my guess is that you get AttributeError: 'SavReader' object has no attribute 'next' Am I close? If so, try using next(sav) instead of sav.next().
I have however managed to compile the programme in the module, I just had to comment more than 20 lines (because of that problem with "employee data.sav" ). I also don't know, if it was right to comment all those lines. Without commenting them I can't even compile the module.
Marko, it seems that you don't know how to program Python. Perhaps you should do a Python tutorial or two so you can fix the code instead of just commenting out lines.
Perhaps start here: http://docs.python.org/tutorial/ -- Steven _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
