answersLogoWhite

0

Pretty obviously, file management code has to be completely bulletproof. Some things to consider are:

* Multiple tasks accessing the same file simultaniously - how do you handle several task trying to write to the same file at the same time? * Medium failure. All storage media is, to some extent, subject to failure. You have to ensure that you can detect and handle media failure. * Where do you store the file information? There are a number of approaches; you could use a FAT (file attribute table) , which is a simple system but, obviously, if you lose the FAT you lose the entire file system. More sophisticated systems use a database to hold file information - making searching for files much faster.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What are the typical problems that can occur with the programming loading and editing facilities and what should you do if they occur?

Typical problems with programming loading and editing facilities include issues like file corruption, incompatible file formats, and software crashes. If these issues occur, first check for error messages and consult the documentation for troubleshooting steps. You can also try reloading the software, restoring from backups, or converting files to a compatible format. If the problem persists, seeking help from technical support or community forums may provide additional solutions.


What are two problems p2p file sharing systems can cause?

List two problems P2P file-sharing systems can cause.


What are two problems p2p file-sharing systems can cause?

List two problems P2P file-sharing systems can cause.


What is file structures in C plus plus?

As far as C++ is concerned files do not have structures, they are simply raw data streams. It's entirely down to the programmer to determine what structures exist within the file and to interpret the data accordingly. C++ cannot do it for you.


How do you include classes and structures in header files in c plus plus?

Classes and structures can be put in a header file the same way you would use them in a main program; the only difference is that they are placed in a separate file, called a header file. Then, after creating a new file, include that new file with the definition by the use of the preprocessor #include statement.


What were the shortcomings of early file-oriented database structures?

data redundancy


What causes computer temporary file problems?

pee


What are the five 5 major Operating system activities with regards to fill management?

The five major operating system activities regarding file management include file creation, which involves initializing a new file and allocating space; file organization, which structures files in a directory hierarchy; file access, which manages permissions and methods for reading and writing files; file storage, which involves maintaining data on storage devices; and file deletion, which removes files and frees up allocated space. These activities ensure efficient data handling, security, and accessibility for users and applications.


Examples on structures of C programming?

'struct tm' (time.h) and 'FILE' (stdio.h)


How can you overcome the problems of a flat-file database?

Store it in MySQL or use more then one flat-file DB...


What is a log file?

A log file is a text or data file that details what happens at a given time if a program is set to log activities and events that occur during its execution.


Where are references to each file on a disk stored?

References to each file on a disk are typically stored in a file system's data structures, such as the file allocation table (FAT) or inode table. These structures maintain metadata about files, including their names, locations, sizes, and attributes. The operating system uses this information to efficiently manage file access and organization on the disk. Additionally, directories serve as a way to organize and reference files within the file system.