Hi. I am wondering how, if possible, to open a file in C programming. I don't mean to write to like a TXT file, but just a simple program that when run opens a DIFFERENT .exe (or other) file on the computer's hard drive.
Thanks.
Hi. I am wondering how, if possible, to open a file in C programming. I don't mean to write to like a TXT file, but just a simple program that when run opens a DIFFERENT .exe (or other) file on the computer's hard drive.
Thanks.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
it is possible to write to files other that type .txt in c - you don't need to learn anything new, just to have an idea of how the document handles text - i learned that i can write useful information to a microsoft excel file in the same way i write to a text file (using fprintf) - \n will move to the cell below the current cell position i am in, \t will write to the cell on the right of the current cell, and there are probably more ways of manipulating such documents if you're willing to experiment.
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI