Aswin Rajamannar wrote:
>
> I'm new to C programming. While working with files, they say we can 
> open and
> read or edit files. I can't understand the whole shit. What files can we
> open? My friend says we can open only text files lik .txt and read it and
> add contents to it. But in a book, i saw that we can open files with
> extension .c and work with them. I don't just want to mug up what the text
> book says and write it in exam and pass. Tell me what a file pointer 
> points
> to and what is the big advantage working with files. At a moment, i 
> thought
> of skipping this section and proceed, but i feel you could prove some help
> to me.
> Regards,
> Aswin
>
> [Non-text portions of this message have been removed]
>
>  
Aswin;

The ability to open, read from, write to, and append to files is far 
more important than probably what you have been exposed to with your 
experience in programming.  The extension of ".c" to the name of any 
file means that the file represents a C source code file.  The extension 
of ".cpp" to the name of any file means that the file represents a C++ 
source code file. 

The primary concern that you should have is whether the file is a text 
file or a binary file.  There is a vast difference in the data layout of 
each.  But initially, work with text files to gain the fundamental 
experience.  You develop you skill based upon your experience and being 
able to correct your mistakes.  This is especially true with the C language.

Best of luck!!!

Kocmotex

Reply via email to