What would you like to do?

How do you write a program using command line arguments?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

#include<stdio.h>
int main( int argc, char *argv[])
{

FILE *p;
if(!argv[1])
{
printf("can't open the file");
}
else
p=fopen("venki.txt","r" );


return 0;
}
Thanks for the feedback!

What program is used to write JavaScript?

You can use any standard text editor to write JavaScript. So, for instance, Notepad, Emacs, Vi, or nano are all capable of creating JavaScript files, and are capable of saving

What is the maximum combined length of command line arguments including the space between adjacent arguments?

So for as i know, it depends on the first argument which represents the number of arguments. If argc is 2 bytes in length, 65535 strings can be passed. If argc is 4 bytes in l

Write a program to draw a line using DDA algorithm in C language?

 # include  # include  # include  # include  void DDALine(int x1,int y1,int x2,int y2,int iColor);  void main()  {  int gDriver=DETECT,gMode;  

Program to copy one file into another using command line arguments?

include #include #include #include #include #include #include int main(int argc,char * argv[]) { int fp,ft,buffsize=10; char *buff=(char *)malloc(sizeof(ch

What is an argumentative writing?

Argumentative writing is a type of writing that is from one point of view. It is when a writer proposes his view towards a subject, opposing it or proposing it.

Write a program that converts a decimal number to Roman number. Decimal Number is accepted as command line input at the time of execution.?

  import java.io.* ; public class Roman { public static void main(String[] args)throws IOException { InputStreamReader reader = new InputStreamReader(System.in)