|
String str="";
str="ABCC";
char *b;
b=str.c_str();
TFileStream *a= new TFileStream("파일경로 명",fmOpenWrite);
a->Write(&b,sizeof(b));
delete a;
이렇게 해서 한번 연습장에 ABCC가 써지나 봤는데 연습장엔 항상 ? <<이렇게 써져있더라구요
왜그런지 이유와 TStream클레스에 대해 간략한 정의좀 부탁드립니다 ㅠ 참고 서적도 알려주시면 감사합니다.!
|