C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[46096] Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요?
BloodWolf [cyberpd] 1401 읽음    2006-08-08 19:25
#include <fstream>

void test(void)
{
    std::ifstream file1("1.txt",std::ios_base::in | std::ios_base::binary);
    std::ifstream file2("2.txt",std::ios_base::in | std::ios_base::binary);
    std::ifstream file3("3.txt",std::ios_base::in | std::ios_base::binary);
    std::ofstream filecomm("com.txt",std::ios_base::out | std::ios_base::binary);

    filecomm << file1.rdbuf();
    filecomm << file2.rdbuf();
    filecomm << file3.rdbuf();

    file1.close();
    file2.close();
    file3.close();
    filecomm.close();
}

+ -

관련 글 리스트
46088 2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? 냥이 786 2006/08/08
46101     Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? 왕대박 867 2006/08/09
46105         Re:Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? 냥이 807 2006/08/09
46109             Re:Re:Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? 왕대박 839 2006/08/10
46096     Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? BloodWolf 1401 2006/08/08
46092     Re:2개이상의 파일을 하나의 파일로 묶을때 어떻게 하면될까요? 하안인 910 2006/08/08
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.