Suppose your file name is ans.cpp input file is in.txt output file is out.txt go to the command prompt, open that directory and type "ans <in.txt> out.txt" - without quotes
answer will be in out.txt P.S. I have not seen the video On Tue, Apr 3, 2012 at 2:10 PM, MSD <[email protected]> wrote: > Hi all Code jammers > > i work in C# and taking look at the > code of the previous year problem in http://go-hero.net/jam/ where i > see codes use Console.readline and > Console.writeline .................but where as in GCJ , you need to > submit the output in a file and take input from a > file ................................ i was thinking that we need to > use file stream , later came to know that , u guys write some command > in Command prompt which makes the code to behave in such a wa that , > it takes code from the file and writes the output in the > file ................. > > > PLease see the following video , this guy uses VC++ i guess , he gives > some command anad the output is generated in > output.out .......................How to i do that in C > > > http://www.youtube.com/watch?v=MeqRo6HvtUU > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > > -- Regards Vivek Dhiman -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
