Lets say I have data.txt
, and this is inside
0
0
0
How do I get the data from this in one single line? I tried something like
file_in = open('data.txt', 'w+')
a, b, c = file_in.read().split()
but it didn't work so well. How do I correctly get a
, b
, and c
to each get values of 0
, from the data.txt
file?