given file a.txt
how can I pass the content of this file as arguments to the main function ?
for example:
a.txt:
a b c d e
and the main function is:
int main(int argc, char *argv[]);
And I want to pass the content of this a.txt
file as arguments to main
function. Namely, the arguments will be: a
b
c
d
e
.
How can I do it via Eclipse compiler ?