answersLogoWhite

0


Best Answer

File is a place where information or data is stored.

we make use of some of the file-handling functions in c like:

fopen()-for opening a file.

fclose()-to close a file. Every file being opened for any operations like:

"r"- Read-Only mode.

"w"-Write-only mode.

"a"-append mode.

"r+"-read+write mode.

"w+"-write+read mode.

"a+"-read+append mode.

We should make use of FILE pointer ,in order to perform any such operations on the files.

There are many input and output functions used along with files.

fgetc()

fgets()

fscanf()

fputc()

fprintf()

fputs()

fseek()

rewind()

File handling is used to read or write a file without directly opening it.its contents are opened in another files by using above specified commands

in c++ programming for file handling we have to use a header file but in c noheader file regarding to file handling is required

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

There are no advantages as such. C++ is a generic programming language but files are platform specific so there are no built-in file handling methods. File I/O is largely addressed by the standard library's file I/O streams (ifstream and ofstream).

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

In C++, file handling means doing things with files, such as opening/closing, reading/writing, deleting/copying/moving/renaming etc.

In other languages, file handling means doing things with files, such as opening/closing, reading/writing, deleting/copying/moving/renaming etc.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Quite common, happens in almost every program.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

There is a quite a lot of things you can do with files; some of them are: open, read, write, close, delete, copy, move, rename, concatenate, sort...

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

File handling in c++ refers to the input/output system of c++ that handles file operations which are very much similar to the consol input and output operations.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

importance of file handling

This answer is:
User Avatar

User Avatar

derrick wambugu

Lvl 2
2y ago

[object Object]

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is definition of file handling in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is file handling in c and c plus plus or objective c?

File handling is simply the process of opening, reading, writing and closing files. Files are simply streams for input and output, or the "serialisation" of objects. In other words, reading and writing data to and from disk storage.


What is the purpose of the header file io.h in c plus plus?

The header, io.h, is part of the standard C library and contains declarations for file handling and I/O functions. The file has no practical purpose in C++; it is only included because it was required prior to C++ standardisation. However, it can be used when writing C-style programs and libraries in C++.


How is file handling applied in c plus plus?

File handling is handled by input stream objects (ifstream) and output stream objects (ofstream), or bi-directional streams (fstream). These classes are derived from istream and ostream. See related links for more information on these classes.


You want a file handling c program?

yes


Can anyone provide me with a C plus plus coding for hotel reservation system using data file handling?

That cannot be answered here; there are commercial packages to do this, which you can locate on the Internet.


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


Which compiler is used for writing c plus plus exception handling programs?

C++ compiler, obviously, a C compiler won't do.


How do you open a file in c plus plus?

fopen()


What is exception handling in C plus plus?

Exception handling is the means by which exceptions -- anomalous events -- are resolved without causing a runtime error.


Is there a file concept in c plus plus?

No. The standard does not define nor require a file concept.


Can you rewrite a cuda file in c c plus plus language?

Yes, you can rewrite a cuda program originally written in c in c plus plus.


What is basic structure of file handling in c language?

open, read/write, close