Code:
f = open(r'C:\ff.txt', 'r') open txt file , read
for line in f: #there are more lines in variable f
x=line.split() # i split that lines so I could delete few of them any way its not important
del x[:1] # cut it
del x[2];del x[1];del x[1];del x[1];del x[1];del x[1] # cut it till it left what i want
o=str(x) # I put it in string so I could strip some signs since list dosent have strip command
p=o.strip('[]\'') # I strip few signs
l=open(r'C:\lol.txt','w') # I wanna save it in C:\lol.txt
l.writelines(p) #save variable , but i t save one and when it save other line it delete first one
l.close()
f = open(r'C:\ff.txt', 'r') open txt file , read
for line in f: #there are more lines in variable f
x=line.split() # i split that lines so I could delete few of them any way its not important
del x[:1] # cut it
del x[2];del x[1];del x[1];del x[1];del x[1];del x[1] # cut it till it left what i want
o=str(x) # I put it in string so I could strip some signs since list dosent have strip command
p=o.strip('[]\'') # I strip few signs
l=open(r'C:\lol.txt','w') # I wanna save it in C:\lol.txt
l.writelines(p) #save variable , but i t save one and when it save other line it delete first one
l.close()
uglavnom u fajlu C:\ff.txt nalazi se par linija i ja sam to sasjekao i uredio kao sto pise gore u codu , i sad kad zelim to sve spremit u jednu varijablu ne moze jer se sprema jedno preko druge i brise ovu prvu , tako da nakraju samo zadnja ostane , i pokusao sam i s append u listi ali neradi , kako mogu to sve nekako spremit u jednu varijablu i onda da spremim u mapu , ako neko moze pomoc bio bih zahvalan jer mi se ovaj problem vec javlja kod par progama a nikako da skontam kako da to rijesim...