Search
 
SCRIPT & CODE EXAMPLE
 

C

read a document in c getting name from console

#include<stdio.h>
int main(int argc,char *argv[]){
	FILE *in=fopen(*++argv,"r");
	char c;
	while((c=fgetc(in))!=EOF)
		putchar(c);
	fclose(in);
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: .sh template 
C :: remove axis numpy array 
C :: c float 
C :: fgets function in c 
C :: c get current month, year, day 
C :: format specifiers in c 
C :: putchar in c 
C :: epoch time in c 
C :: compare c strings 
C :: star pattern in c 
C :: write a c program to find size of variable 
C :: form controls in bootsrap 
C :: how to take blank space in c scanf 
C :: DrawText() raylib 
C :: check whether a number is prime or not in c 
C :: continue statement in c 
C :: c print 2d array 
C :: include ‘<stdlib.h’ or provide a declaration of ‘exit’ 
C :: powershell list big files 
C :: c structure with pointer 
C :: stack and heap memorym in ram 
C :: ternary operator in c 
C :: c program for assignment operator 
C :: c pointers and arrays 
C :: 2 html 1 javascript 
C :: C/c drop mime 
C :: c program for fibonacci series 
C :: reset c array to zero 
C :: minimun number of moves in c 
C :: Uri/Beecrowd Problem no - 1184 solution in C 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =