Perror('Error while opening the file.\n') Printf('Enter the name of file you wish to see\n') įp = fopen(file_name,'rb') // read binary mode txt file and not a binary file) and store it in an array for later. For example, say I had the text file 'helloworld.txt' that simply had the words 'Hello World!' in it, I want to specify to the program to take that file, read its hexidecimal values (again the file is a simple. I want to take in a file and view its hexadecimal values.
I am writing a c program that functions much like a hex editor.