View Single Post
Old 07-13-2006, 01:01 PM   #10 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Create a new project (dos/console app) and place the code I've given into the suggested .c file.
Compile the project, which in terms will produce an executable file, usualy called a.out or out.exe (can't remember what dev-c++ produces, mainly because I've never used it)
This output file, is the actual "program" mentioned in my example of usage.

So theres no need to alter any part of the code I've provided.

The mentioned program input.txt output.txt is the actual way to use it from a console (start -> run -> cmd)
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote