leela74,
Cannot understand the need of using system command if the same you can do without doing a change of directory.
concatenate your file name abc.txt to full directory path and use fopen,it will try to open the file in that directory only,secondly I think you do not require to replace \...
perlguy,
instead of keeping number of records in an another file ,you can count number of records from your file itself
by adding a record count function
int recordcount()
{
int recordcnt=0;
while( !feof(fp))
{
fgets(cdata, 100, fp);
recordcnt += 1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.