I have a function in C that calls another software to execute and generate a file then its manipulates the data e.g.
void main()
{
function();
//manipulate data in output.txt
}
void execute()
{
system("./test input.txt output.txt");
}
for some reason the output.txt file is not being generated by full…how does the system call work? will execute return to main before system call ends? if yes how can I solve this? Im working on ubuntu using gcc
1 Answer