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

VS 2010 [RESOLVED] WriteAllText: append with a space, multiple variables

$
0
0
Hi all.

I am using the below code to write to a file. Each time this code is used, it appends to the file, with no space between the old and new entry.

1. How can I append with a space between the two entries?

2. What about writing multiple variables? If I have two variables, NewEvent1 & NewEvent2, how can I write both to the file, with a comma between them?

EDIT: Forgot to mention that I want to separate with a comma because I want to read the variables back from the file. So the comma is a delimiter.

Thanks in advance.

Code:

My.Computer.FileSystem.WriteAllText("events.txt", NewEvent, True)

Viewing all articles
Browse latest Browse all 27466

Latest Images

Trending Articles



Latest Images

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