C++ I/O
1886 ワード
Constructors
bad() true
clear()
close()
eof() true
fail() true
fill()
flags() flags
flush()
gcount()
get()
getline()
good() true
ignore()
open()
peek()
precision()
put()
putback()
rdstate()
read()
seekg()
seekp()
setf()
sync_with_stdio() I/O
tellg()
tellp()
unsetf()
width()
write()
#include <fstream>
int main()
{
std::ifstream fin;
std::ofstream fout;
fin.open("in.txt",std::ios::in);
fout.open("out.txt",std::ios::app);
char temp;
while( fin >> temp )
{
fout<<temp<<std::endl;
}
fin.close();
fout.close();
return 0;
}