Text file:
Test 1,15.05.13
Python:
with open("text_file.txt") as inputFile: lines = [line for line in inputFile] var1, var2 = lines[0].strip().split(",") This work fine if I have one line. How can I do this if I have many lines?
Text file:
Test 1,15.05.13 Test 4,15.06.13 Test 5,15.07.13 Test 6,15.08.13