I need to write an utility that takes a file name or file path as argument, open and read the file. Then I need to convert it to binary and write it to another file.
I could not figure how I could pass a file path (ex:C:/usr/temp/Cprograms/prog1.c). When a path like this is given how do I read it and open the file.
For writing to the file can I use fwrite(). Is there any other method to do this.
0 · ·