home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
s
/
sharstrm.zip
/
README
< prev
next >
Wrap
Text File
|
1993-03-04
|
1KB
|
29 lines
//-------------------------------------------------------------------------
// Subj: File Locking and C++ Streams - a test program
// From: Mark Howell - 71730,2642
//
// This zip contains the following:
//
// SharStrm.cpp - the source for the test program
// SharStr1.exe - the source compiled
// SharStr2.exe - the source compiled
// ReadMe - this file
//
// Notes:
// This is a test program to show how to use file locking in
// concert with C++ file streams. I already know this is not
// the most elegent solution, but it does work. I included two
// copies of the compiled source for testing purposes. I tested
// it under two DOS sessions under OS/2 2.0
// I am interested in any thought as to encapsulating this into
// a class. Considerations are: 1) the I/O methods of xstream
// classes, 2) xfstream inheritance, and 3) LITTLE OR NO CODE
// DUPLICATION DOWN INTO THE NEW CLASS!
// ( If a class must duplicate a lot of code from the inherited
// class then either the new class is poorly designed, the
// parent class is poorly designed, or a completely new class
// is in order. )
// Let me know. Mrk.
//-------------------------------------------------------------------------