hi.......We have a task to write a program in C in linux environment that takes 2 command line arguments:
1.the name of a text file that contains single-digit integer data in one line
2.an integer to be searched from the sorted version of data in file.
The prgram creates a child process that reads the text file paased as the first argument,sorts the numbers with any sorting algo,communicates the sorted numbers to parent process via a pipe and exits.The parent process searches the sorted data that it receievs from the child and displays a message informing the user of frequency of occurence of searcged digit.All priting,reading should be done by system calls.
and we not allowed to use any liibrary functions.
signature of main function is...main(int argc,char**argv)
now,i can write the code for system calls...but my major programming problem is BRINGING IT ALL TOGETHER!
PLZZZZZZZZZZZZZZZ HELP ME...HOW DO I WRTIE THE CODE FOR THIS TASK?