Nov-17-2017, 08:40 AM
Hi snippsat,
i have one more question.
How do i also write data.txt into data_out.txt
i wants to write data.txt into data_out.txt
EX:
data.txt
11
12
data_out.txt
11 0xb
12 0xc
11 is from data.txt
can i used below this code, and change
i have one more question.
How do i also write data.txt into data_out.txt
i wants to write data.txt into data_out.txt
EX:
data.txt
11
12
data_out.txt
11 0xb
12 0xc
11 is from data.txt
can i used below this code, and change
with open('data.txt', 'w') as f,open('data_out.txt', 'w') as f_out: f.write('{}\n'.format(hex(int(line))))