コンテンツへ
#1
投稿記事 by rajan » 15年前
#2
投稿記事 by kazuoni » 15年前
#3
投稿記事 by Ma » 15年前
#4
投稿記事 by バグ » 15年前
std::ifstream ifstm("in.txt"); std::ofstream ofstm("out.txt"); std::copy(std::istreambuf_iterator<char>(ifstm), std::istreambuf_iterator<char>(), std::ostream_iterator<char>(ofstm));
#5
投稿記事 by toyo » 15年前
#include <stdlib.h> int main() { system("cat in.txt > out.txt"); system("cp in.txt out2.txt"); return 0; }
#6
FILE* pin = fopen("in.txt", "r"); FILE* pout = fopen("out.txt", "w"); int buf = '\0'; while ((buf = fgetc(pin)) != EOF) fputc(buf, pout); fclose(pin); fclose(pout);
#7
投稿記事 by 初級者 » 15年前
#8
投稿記事 by lbfuvab » 15年前
“C言語何でも質問掲示板” へ戻る