Professional Documents
Culture Documents
Abstract
In a business a proper management of order or The fstream library predefines a set of operations
stocks plays a vital role, say bulk orders like for handling file related input and output. It defines
laptops, desktops, television and so on. In order to certain classes that help one perform file input and
maintain this thing this paper will present a review output. For example, ifstream class ties a file to the
on stock management system which is made with program for input, ofstream class ties a file to the
the help of data file handling. It performs various program for output, and fstream class ties a file to
operations like entering the information of orders, the program for both input and output.
displaying the quantities so that the product is not
out of stock, modifying the information of order, ifstream An input file stream class, inherits
inserting different items, deleting the items and it functions get(), getline(), read() and
also reads the information of the customer. This functions supporting random
access( seekg() and tellg())
system is made with the help of data file handling.
ofstream An output file stream class, inherits
As data file handling helps in storing the put(), write() and functions
information of the stocks permanently in the supporting random access (seekp()
storage. In this method the seller has lifetime access and tellp())
to the information and can modify, insert, delete the fstream An input-output file stream class,
details of stocks and can regulate the availability of provides support for simultaneous
the stocks. input and output operations
Table.1.Functions of file stream classes [1]
Key words: Files, file handling, streams, stocks.
Basic Operations
Result
With the help of data file handling we have
successfully created a stock management system.
This system helps the user to maintain a large
amount of stocks as in case of inventory where we
can do the following operations:
(i) We can store the details of the stocks in the
system which is stored permanently in the system.
This is done with the help of output stream called
ofstream class.