S
Shane
I have an old program that terminates text files with a hex (1A).
MS-DOS programs used to need the Control-Z character to terminate text
files.
I need to create new text files in .NET that will embed the Control-Z
as well.
How do I do that?
I'm thinking of something like this, but I can't figure out the syntax.
Dim sw As New StreamWriter("C:\Test.txt", False,
System.Text.Encoding.UTF8)
sw.Write("This is line 1" & ControlChars.Lf)
sw.Write("This is line 2" & ControlChars.Lf)
sw.Write("This is line 3" & ControlChars.Lf)
sw.Write(Char(26)) <--- This is the syntax that I can't figure out
sw.Close()
Thanks.
MS-DOS programs used to need the Control-Z character to terminate text
files.
I need to create new text files in .NET that will embed the Control-Z
as well.
How do I do that?
I'm thinking of something like this, but I can't figure out the syntax.
Dim sw As New StreamWriter("C:\Test.txt", False,
System.Text.Encoding.UTF8)
sw.Write("This is line 1" & ControlChars.Lf)
sw.Write("This is line 2" & ControlChars.Lf)
sw.Write("This is line 3" & ControlChars.Lf)
sw.Write(Char(26)) <--- This is the syntax that I can't figure out
sw.Close()
Thanks.