Seek to the end of the file (fseek) and check how many bytes are in the file
If the byte count is zero the file is empty.
why does a program consists of more than one object file in c++
program to extract a given word from a file
You have one or more errors in your program.
how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.
In a canonical C compiler, you type "cc (program file name).c (return) and it spits out "a.out", which is an executable. Works with the original Kernighan and Ritchie C compiler. For C++, use the .cpp extension and "g++" for the compiler: In a terminal window, on MacOS, 'cc (program name).c (return)' 'g++ (program name).cpp (return)' produces an executable named "a.out", which can be run. '-o (some file name . extension) will change the output file name.
why does a program consists of more than one object file in c++
program to extract a given word from a file
File Operations in C are accomplished by the use of pointers.Pointers are use to point to a particular memory location.File are read and written by using file pointers.The Keyword FILE is used to declare a file pointer.The Complete Program for writing text to a file and saving it and copying it to a new location is given at http://c-madeeasy.blogspot.com/2011/07/program-in-c-to-write-data-to-file-and.html
File/Open
yes
Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)
The source code for the program is in many files verse being all in one file, I should think.
The file which are represent at the top of any program or any presentaion is called hader
program file in c:\ drive
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,
You have one or more errors in your program.
C