First of all, i sincerely apologise for the use of undesirable language. As for your questions are concerned, I'm from South India and I use the book "Object oriented programming" by a South Indian author named Balagurusamy. I also use Yashvant Kanetkar's book. Coming to the point, I've got some good stuff about files from you. Well again, then what does it mean when we say we can add or get an integer from a file [getw() and putw()]? Does adding an integer to a text file just adds the specified integer where the file pointer is (so that we can see it when we open the file), and in other files, it changes the behaviour of the file by adding the binary form of the number to the series of such digits which is already in the file? Does it mean that same is the case when adding a character to a file?
On 2/4/08, ali ahmad <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > hi new ; dear > there is nothing such that you can only open .txt . > c++ laguage provide us the facility to open a file in any extention. > but the matter is you are using the right parametters > and it also that if u open the file in binary the it also read in binary > and vice versa; > > > > > > > > > > > > > Joe Ouellette <[EMAIL PROTECTED] <kocmotex%40frys.com>> wrote: > 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 > > --------------------------------- > Looking for last minute shopping deals? Find them fast with Yahoo! Search. > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]
