fgets()でエラー
Posted: 2010年11月21日(日) 17:14
はじめまして。
現在、VC++2008で自宅で開発していますが、テキストファイルの読み込みで、下記エラーが出てしまい、
作業が止まってしまっています。いろいろネットで検索して試してみたのですが、解決できません。
エラー内容は下記のとおりです。
---------------------------
Debug Assertion Faied!
program: ...Viasual Studio 2008\Projects\html server\Debug\xxx.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\fgets.c
Line:57
Expression:(str != NULL)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
中止(A) 再試行(R) 無視(I)
---------------------------
fopen()後、
while(fgetws(buf,256,configfile) != NULL)★ココで上記エラー発生
{
printf("%s",buf);
}
すいませんが、よろしくお願いします。
現在、VC++2008で自宅で開発していますが、テキストファイルの読み込みで、下記エラーが出てしまい、
作業が止まってしまっています。いろいろネットで検索して試してみたのですが、解決できません。
エラー内容は下記のとおりです。
---------------------------
Debug Assertion Faied!
program: ...Viasual Studio 2008\Projects\html server\Debug\xxx.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\fgets.c
Line:57
Expression:(str != NULL)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
中止(A) 再試行(R) 無視(I)
---------------------------
fopen()後、
while(fgetws(buf,256,configfile) != NULL)★ココで上記エラー発生
{
printf("%s",buf);
}
すいませんが、よろしくお願いします。