I just started on SPOJ. It tests by redirecting standard input and output to files. Is there a way to do that directly from the terminal instead of modifying the program.

v3ga
Recommended Answers
Jump to PostIf your on linux you can use the '<' operator. As in
./app < fileName
it gets the input from the file instead of direct terminal.
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.