A
Aalok
This is what i want to do.
Read a text file as an input and based on that file, Create an outpu
text file which saves the contents of the input file in a specifi
format in the output file.
I know how to read a text file and i can even display the contents o
the input file on the prompt. However i am trying to figure out how t
save the contents of the input file in a specific manner.
example.;
this is my input file (say numbers.txt)
1,2,3,4,5,6,7,8,9,10 and data bytes 5.
this is what i want in my output file (outputfile.txt)
10,0,12345678,9abcdef, 1,1, 5,0
my purpose is to create packets from inputs provided.
and feed these packets to a hardware language as an input
-
Aalo
Read a text file as an input and based on that file, Create an outpu
text file which saves the contents of the input file in a specifi
format in the output file.
I know how to read a text file and i can even display the contents o
the input file on the prompt. However i am trying to figure out how t
save the contents of the input file in a specific manner.
example.;
this is my input file (say numbers.txt)
1,2,3,4,5,6,7,8,9,10 and data bytes 5.
this is what i want in my output file (outputfile.txt)
10,0,12345678,9abcdef, 1,1, 5,0
my purpose is to create packets from inputs provided.
and feed these packets to a hardware language as an input
-
Aalo