A file constitutes of information and every file is identified by a name. Files can be used as input and output streams. File management, is a methodology provided in C++ to deal with the files or input and output streams. Generally to manage file transactions, we use operating system. But C++ programming offers flexibility in managing files. File management means performing different file transactions on files. For information storage and retrieval files and file management are needed.
File management includes following file transactions:
¨ Creating a file.
¨ Deleting a file.
¨ Copying one file to another.
¨ Renaming a file.
¨ Appending contents to a file.
¨ Reading the contents of a file.
¨ Changing the attributes of a file.
0 comments:
Post a Comment