You could also learn how to do file handling in your own programming
language. (There are many tutorials online)

For example, in C++ you could do

ifstream input("test.in");

then instead of using cin >> value, you would do input >> value.

Likewise, for output:

ifstream output("test.out");
output << value;

On Thu, Apr 8, 2010 at 2:02 PM, Bharath Raghavendran
<rbharat...@gmail.com>wrote:

> sry ... i put output name same as executable name :P
> this should be fine :
> ./a.out < 1.in > 1.out
>
> On 9 April 2010 00:31, Bharath Raghavendran <rbharat...@gmail.com> wrote:
> > one option is to use file handling in the code and take input from
> > file and put output to new file
> >
> > other option is use redirection operator in command line while running
> > code. use stdin and stdout operations in code (cin and cout for
> > example) and while running code, type
> > ./a.out < a.in > a.out
> > this will take input from a.in and put output in a.out
> >
> > On 8 April 2010 12:39, adde <ashishdhingr...@gmail.com> wrote:
> >> I have downloaded small input file in practice test.can anybody tell
> >> me how to test that input with your program and how to make output
> >> file to submit..
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "google-codejam" group.
> >> To post to this group, send email to google-c...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> google-code+unsubscr...@googlegroups.com<google-code%2bunsubscr...@googlegroups.com>
> .
> >> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
> >>
> >>
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to google-c...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-code+unsubscr...@googlegroups.com<google-code%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to google-c...@googlegroups.com.
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to