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.
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)