Using just System Calls, how do you read a file upto the EOF and in the process execute every line in the program, upto end of line.
Every line in my file, will have a program name that has to be executed.
size_t fd1 = open("inputfile.txt", O_RDWR);
char buf1[BUFFSIZE];
while(read(fd1,buf1,10) != EOF)
{
if(fd1[MAXDATA] == "\n")
}
i created a program with similar functionality recently: