hi everyone
could u plz help me in doing this work
. read first 32 charcters of a preexisting text file and then find out ascii value of each character then take next 32 characters and do the same put all d values in output file
Here is the code which can read your file using 32 bytes width window. If the length of the file is divided by 32 with the rest last window will be shorter. What is left to recognize the characters ASCII codes. You can use snprintf( .... ) with params to format them and write in to the new buffer or you can check their values using decimal numbers or hex because in the buffer you have chars.
The buffer is set to ) rather for educational purposes. Specially in the situation when theRest exists. In this case it could be easier to create null terminated string. But I agree that it's not necessary.
By the way it's still unfinished homework because there is still a task with ASCII detecting ;).