Hi, I need to use the qsort to sort the content of an unknown text file size by reading it into an array and then sort the lines. I know C language well, could someone help? I can get the file size and dynamically allocate memory, but how would I treat the allocated memory like an array like having lines of text file?