Read and write data file
read
ret = []
filePath = "/home/qewtert/setwtr/test.xyz"
for line in open(filePath, 'r'):
nums = line.split(".")
for num in nums:
i = int(line)
string
ret.append(nums)
write
filePath = "./result.txt"
resultFile = open(filePath, 'w')
ret = "12345t"
resultFile.write(ret)
Last updated
Was this helpful?