home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 13
/
CDA13.ISO
/
cdactual
/
demobin
/
share
/
program
/
C
/
ANSICPP.ZIP
/
EX10024.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-07-24
|
305 b
|
17 lines
// ex10023.cpp
// an fstream file
#include <fstream.h>
#include <ctype.h>
main()
{
fstream tfile("test.dat", ios::in | ios::app);
char tdata[100];
int i = 0;
while (!tfile.eof())
tfile.get(tdata[i++]);
tfile.clear();
for (int j = 0; j < i; j++)
tfile.put(toupper(tdata[j]));
}