Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Streamwriter Porblem

$
0
0
Hey i am trying to make a mod kit for a game , using the streamwriter tool in visual basic but it keeps leaving a blank line at the end of the text.
here is my code

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim file As System.IO.StreamWriter

file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\Joseph & Emily\Downloads\Pokemon\Save\" & TextBox1.Text & "\Party.dat", False)
file.WriteLine(TextBox2.Text)

TextBox2.Clear()


End Sub

i need to know how to stop it from leaving a blank line in the .dat file

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>