Without seeing the code, it's hard to say. Check the output isn't going to STDERR instead of STDOUT.
You chould try: ./a.out < 1.in 2>&1 1.out That will send both STDOUT and STDERR to the 1.out file. 2009/8/12 shaunak <[email protected]>: > > Hi all, > I'm new to code jam. Can you please give me the details of how to > create the output file from the given small/large input file provided > by google. I'm using Turbo C++ compiler. > My source code file is jam09.cpp and the input file is 1.in. > When i type in the command prompt (Ms-DOS) > tc jam09.cpp > ./a.out <1.in> 1.out > a 0 kb file 1.out is created. > My program works correctly when i enter the details using keyboard. > Please help me out. > > > On Aug 5, 11:19 am, Aditya Bhiday <[email protected]> wrote: >> On Tue, Aug 4, 2009 at 12:11 PM, ice <[email protected]> wrote: >> >> > Who knows how to test my program with the test data provided by google >> > on my own computer locally. >> >> Depends on which language you are using. If its gcc, use pipes to direct >> input and output through files >> >> For example, >> gcc prog1.c >> ./a.out <1.in >1.out >> will take in input from 1.in and save the output in 1.out >> >> Hope this helps. >> >> -- >> Regards, >> Aditya Bhiday > > > > -- Scott. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" 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 -~----------~----~----~----~------~----~------~--~---
