I\'m trying to use this function to redirect output to file, when this function end my shell slow down.
void fileIO(char * args[], char* inputFile, char* outp