C++ 파일입출력( 이진 파일 불러오는방법좀)
하늬
2023.04.01
char buf[4000];binaryprint.open(binoutput.dat, ios::out | ios::in | ios::binary); // 파일 불러오고binaryprint.read(reinterpret_castchar *(buf), sizeof(buf));
cout buf;
cout buf;
buf에 읽어온것을 출력시켜보면 맨끝에 1줄만 나오고
그위에것들은 다 무시가되어있습니다.이거 어떻게 해야 파일 안에있는것을 모두 출력시킬수있을가요?코드 문법좀 ㅠㅠ지금 저 소스는 풀코드가 아닌 일부분만 올린겁니다