I have been using fgets to read data from a text file(message that is passed to me, then I turn it into a file and read it). The problem (I just found out) is that some of the segments of the message are more than 254 characters long, at that point fgets seems to stop reading that line like it was carriage return. Thus I end up with truncated data. FREAD will read the whole file it looks like or the number of bytes I tell it, but I don't know how many bytes each segment will be. Anybody have any idea?
Kirk