|
aaa.txt라는 파일을 생성해서 내용을 저장하는 코드인데여..
///////// Form Create시 /////////////
if(!FileExists("aaa.txt"))
{
FileCreate("aaa.txt");
ListBox1->Items->Add("파일생성");
}
///////// Form Close Query시 /////////
ListBox1->Items->SaveToFile("aaa.txt");
실행할때는 아무 이상없는데 폼을 닫을때 이런 에러창이 뜹니다.
Project ListBox1.exe raised exception class EFCreateError with message
'Cannot create file aaa.txt'. Process stopped. Use Step or Run to continue.
파일을 생성하고 바로 내용을 저장하려고 해서 그런건지..
만약 그렇다면 그 방법좀 알려주세여.. 부탁합니다...
|