Version Info

Help About Web Editors Languages Home
Online VI Editor
Online Emacs Editor
Programming Languages
Ada (Gnat)
Assembly
C
C99 Strict
COBOL
C++
C++11
C++0x
C#
D Language
Erlang
Fortran-95
F#
Haskell
ICON
Java
Mozart-OZ
Nimrod
Objective-C
OCaml
Pascal
Pawn
Scala
Simula
VB.Net
Verilog
Suggest more....
Esoteric Programming
Befunge
Brainf**k
Intercal
Malbolge
Unlambda
Whitespace
Scripting Languages
Algol-68
Awk
Bash Shell
Basic
Clojure
Fantom
Factor
Falcon
Forth
Go
Groovy
Jython
LISP
Lua
Matlab/Octave
Perl
PHP
Pike
Prolog
Python
Python-3
R Programming
Ruby
Scheme
Smalltalk
SQLite SQL
Tcl
Unix Shell
Suggest more....
Web Programming
Try HTML-5 Online
Try CSS-3 Online
Try Javascript Online
Try jQuery-1.9.1 Online
Try jQuery-2.0.0 Online
Try jQueryUI-1.10.3 Online
Try MooTools-1.4.5 Online
Try Prototype-1.7.1.0 Online
Try Raphael-2.1.0 Online
Try AngularJS-1.0.6 Online
Try Dojo-1.8.3 Online
Try ExtJS-3.1.0 Online
Try VB-Script Online
Suggest more....
Mobile Technologies
Try jQueryMobile Online
Suggest more....
Command Line Arguments: STDIN Input:
Multiple Files
#include <stdio.h>
#include <string.h>

main()
{
   FILE *fp;
   char buff[255];

   fp = fopen("input.txt", "r");
   if( fp != NULL ){
      while ( !feof(fp ) ){
         memset(buff, '\0', sizeof( buff) );
         fgets(buff, 255, (FILE*)fp);
         printf("%s", buff );
      }
      fclose(fp);
   }
}


This is the file you can use to provide input to your program and later on open it inside your program to process the input.