![]() ![]() Writer.Write(Trim(txtNotes.Text) & vbTab & vbCrLf & vbCrLf) Writer.Write(Trim(txtDest.Text) & vbTab & "-" & vbTab) ![]() Writer.Write(Trim(txtLocation.Text) & vbTab & "-" & vbTab) Writer.Write(Trim(txtCarrier.Text) & vbTab & "-" & vbTab) Writer.Write("Destination : " & Trim(destination) & vbTab & vbCrLf & vbCrLf) Writer.Write("Origin : " & Trim(loadOrigin) & vbTab & "-" & vbTab) ![]() MessageBox.Show("File doesn't exist in the given path", "No File", MessageBoxButtons.OK, MessageBoxIcon.Error)ĭim writer As New StreamWriter(path) 'this is where the exception occurs Here's my code If Not File.Exists(path) Then Simply said, this is how it should look: test1 - test1 - test1 - test1 test1 - test1 - test1 - test1Īfter writing the first line, the text fields are cleared to make space for another round of user input. I have a program, which writes data to a text file in the following format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |