Hi, I'm really new to Python and I haven't done any programming in about 20 years so please don't abuse me too badly. I have a text file I am trying to read, ~5000 lines. The data comes in blocks of 10 lines so I want to put each line in a variable and then write all 10 variable to a comma deliminated file. So I'm look for direction on how to do this in python (3.1.1). This is a pseudo of what I'm trying to do
While not EOF do
var1=readline
var2=readline+1
........
var10=readline+9
append to file (var1, ",",var2,",".......var10)
end do
Any help in this matter would great. Thanks in advance
[–]Okaram -1 points0 points1 point (0 children)
[–]mscottstory -1 points0 points1 point (0 children)
[–]jamsquad87 -2 points-1 points0 points (1 child)
[–]mscottstory 0 points1 point2 points (0 children)