Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Program to open a file with First argument

Answer Posted / kishore kumar naik p

void main(int nArgCount, char *szArgVector[])
{
if(nArgCount != 2)
{
printf("\nWorng number of argument\nSynatx: %s
<filename>",szArgVector[0]);
return;
}

FILE *fp = foepn(szArgVector[1],"r+");
//Process the file here
fclose(fp);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor overloading in oop?

1078


Write a c++ program to display pass and fail for three student using static member function

3326


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3408


explain sub-type and sub class? atleast u have differ it into 4 points?

2255


Why do we use polymorphism?

1009


What is solid in oops?

1040


c++ program to swap the objects of two different classes

2358


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1810


What is encapsulation with example?

1024


Can main method override?

1060


What is the purpose of polymorphism?

1084


What are oops functions?

962


Can private class be inherited?

1120


What is object in oop?

1061


What is polymorphism and why is it important?

981