fp=fopen("c:\\새폴더\\output.txt","w");

이렇게하면 제대로 실행되는데

fp=fopen(argv[1],"w");

이렇게 하면 빌드는 성공하는데 debug assertion fail 뜸

왜이래ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ?