hi, anyone can help me figure out how to read data from a text file like this: 10980012907200228082002 and extract the data according to this kind of format: Record type 1 TY-RECORD PIC (1). ID-PARTICIPANT PIC (6). DT-START PIC (8). DT-END PIC (8). i would want the program to extract the data and display them like this: TY-RECORD ID-PARTICIPANT DT-START DT-END ...
ques and ans are arrays of 20 pointers to char. You apparently have not actually allocated any space to store the strings that you want to read in. If you know that there is a maximum of 20 lines in the file, and that each string to be stored has a certain maximum length (that is not too large), then it ...
Hi! I was wondering if there is a way to output the hexdump or raw data of a file to txt file. for example I have a file let's say "data.jpg" (the file type is irrelevant) how can i export the HEXdump (00110010 01001010 00111101 etc) to a file "output.txt"? also how I can I specify the format of the output ...
Hi folks, I need to extract some data (float) from a text file, and then write it to another text file in a listed format, for example, 0.000023 0.000004 0.395869 0.565663 0.999999 .. etc The file I want to extract the data from has the following format, the data required is higlighted in blue. Packet 1: 00:09:5B:68:ED:4C -> 00:09:5B:2F:B6:74 Destination Address: ...