Okay, once you have that, you can just add a new file and write it with the same name.
If Not Directory.Exists(path) Then
Directory.CreateDirectory(path)
File.Create(path + "\\" + TextBoxTitle.Text + ".txt")
This would create the file and open the stream to that file — to close that, do
.Close()
on the
Create()
function. Note that, I created the file inside the If block, to only create the file when the directory did not exist — if your directory exists, due to faulty code, remove the directory and run the code again.
How to: Create a File in Visual Basic | Microsoft Docs[
^]