home *** CD-ROM | disk | FTP | other *** search
- /*-- Rev Header - do NOT edit!
- *
- * Filename : editfile_test.cc
- * Purpose : testet eine Klasse, die das Bearbeiten von Files erleichtert
- *
- * Program : -
- * Author : Gerhard Müller
- * Copyright: (c) by Gerhard Müller
- * Creation : Tue Sep 7 02:26:39 1993
- *
- * compile :
- *
- * Compile version : 0.1
- * Ext. Version : 0.1
- *
- * REVISION HISTORY
- *
- * Date C-Version E-Version Comment
- * --------- --------- ----------- -------
- *
- *-- REV_END --
- */
-
- /*
- * C-Includes, C-Definitionen
- *
- */
-
-
- /*
- * C++-Includes, C++-Definitionen
- *
- */
-
- #include "../../add/baserel/editfile.h"
- #include "../../add/baserel/couta.h"
- #include "../../add/baserel/cina.h"
- #include "../../add/baserel/OwnError.h"
-
- int main (void)
- {
- char buffer[256];
-
- cout << "Filenamen:" << flush;
- cin.tie(Output());
- cin >> buffer;
- cout << buffer;
-
- editfile myfile(buffer);
-
- if(err)
- {
- cout << err.have_error_string() << endl;
- err.DosError(IoErr());
- cout << err.have_error_string() << endl;
- }
- else
- {
- cout << myfile.strings << endl;
-
- for(int x=0;x<myfile.strings;x++)
- {
- cout << myfile.index[x] << endl;
- }
- }
-
- return(0);
- }
-
-