views:

56

answers:

1

Can anyone give me some advice as to how to clean up a string in Visual Basic .NET? I'm creating a string as a report with line breaks. However, the string is built based off of screen scrapes from a TN3270 emulator. The string is saved successfully with all of the data I require, but those annoying rectangle symbols show up once I send it to a notepad text file. Do you know anyway I can strip those out and clean up the output? Example of my Output

+2  A: 
s.Replace(vbCr, vbCrLf);

Replace vbCr with vbLf depending on what is in your file.

Alternatively, just open it in WordPad.

Blindy
Good idea. Thank you.
Louise