HI , I have a basic question to ask.
how do i open a .txt file in C ? i am using the code shown below which is always telling that "file not found".
#include <stdio.h>
main()
{
FILE*fp ;
fp = fopen ( "PR1.txt","r" ) ;
if( fp == NULL )
{
puts ( "file not found " ) ;
return 0;
}
}
the file PRI.txt is placed in borland turbo c++ directory. is it the right directory for file processing ?
thanks in advance.