Strangest thing. I am creating a text file using files and streams in a Codeunit. When I create this file from the Classic Client it comes out great. When I create the same file, in the same folder, on the same server, it writes blank lines equal to number of lines it should have written, and then a partial piece of the last line, everything but the first two characters.
The output to the file is from a BigText variable and is done via BigText.WRITE(Buffer). I checked this post,
viewtopic.php?f=32&t=34321&hilit=bigtext, and I am doing everything the same way. I have also confirmed via message prompts directly before the writes that the BigText variable contains what I want to write to the file, but it should since it works fine in Classic.
I thought that maybe I would need to write it directly to a drive on the service tier for some reason, but that didn't work either.
Has anyone experienced this before? I am at a complete loss at this point. ](*,)
Comments
In Classic it produces this:
"MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
MyBigText
"
In the RTC it produces this:
"
BigText"
If it is a text variable it works fine in both, but not with BigText. I am going to have to do a TextArray for the time being, but I would love to know what is going on here.
I think there's somthing messed up with the bigtext var in the 3-tier.
Add this:
instead of writing it in the stream