0

I need to process 10 values. Which way would be better? Getting them as command line arguments or instead reading from a file? Using C by the way.

2
  • @Radek: Alas, the general rule is no migrations to beta site. 'Course, it has been broken from time to time. Commented May 21, 2011 at 1:06
  • @dmckee it cannot be migrated to UX. Commented May 21, 2011 at 8:35

1 Answer 1

5

If you make them as command-line arguments, then you could do it both ways... i.e.

 a.out 1 2 hello abc ... 

or

a.out \`cat file_with_arguments.txt\
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.