I want to read one line of the text file, save it to a buffer, send the buffer over a udp socket and then go and read the second line and so on..
So far, since I knew the data type of the text to be read from the text file, I had been using
fscanf() to read each line from the text file. But now I don't know the data types so it is not possible for me to use this function anymore. Is there any other way to read text file line by line.
Note: The length of each line may vary.