Yes, I tried FiletoStr but the file was being truncated and I needed to drop Identification records - so I discarded that function...
Wrapping is not a problem for processing standpoint but for end-user PC operators during file investigation they do not like that at all.
>Edgar,
>
>I don't know if this will help, but you *may* have better behavior with the StrToFile() and FileToStr() functions.
>
>Doug
>
>>...
>>m.buffer = FGETS(gnOrigin)
>>...
>>nFAIL=FPUTS(gnFile, m.buffer)
>>...
>>IF nFAIL = 0
>>nERRCNT= nERRCNT+ 1
>>...
>>I read in a variable length record set (gnOrigin) with a maximum length of 320 characters and later write that record to another file (gnFile) no errors; however, the gnFile now has been wrapped at about 250 characters max.
>>
>>Have you seen this happen, How can I prevent the wrapping?
>>
>>Any help appreciated...
Edgar L. Bolton, B.S. B.B.A.