Effect effect = Effect.FromFile(device, filename, null, null, ShaderFlags.None, null);
string text = effect.Disassemble(false);
stream.WriteLine(text);
C# streamwriter.Write not printing entire string
I am trying to write the output of a disassembled shader to a file.
I have checked the string "text" in the editor and it is complete, but when it is written to the file, the last few lines seem to be cut off. I have tried splitting the string and writing each of the split strings to the file, but that doesn't seem to help.
That did it. Thanks.
I was flushing beforehand. When I tried split the larger string into substrings, I flushed between strings, but not after the last one.
I tried converting the string into a character array and told it to output the number of characters in the array. Especially in this case, why would there be data still left in the output buffer?
I was flushing beforehand. When I tried split the larger string into substrings, I flushed between strings, but not after the last one.
I tried converting the string into a character array and told it to output the number of characters in the array. Especially in this case, why would there be data still left in the output buffer?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement