Create a txt File in vb.net
Hello i just need a simple code that let you Generate a Txt file with different name random string every time you click on Button
Code:
Dim path As String = "c:\MyDir"
Dim di As DirectoryInfo = Directory.CreateDirectory(path)
Dim fie As System****.StreamWriter
fie = My.Computer.FileSystem.OpenTextFileWriter("c:\MyDir\Test.txt", True)
My.Computer.FileSystem.RenameFile("C:\MyDir\Test.txt", "SecondTest.txt")
This code is no working for me

please help me
"Test" <> "test"
?
Not sure if you can rename a file while it's open..try I guess. Does the .RenameFile() function have a return value?
To create a random string...
srsly? Did you start coding yesterday? Read a f*****g book. This is beyond basic. If you don't have a specific question about how to generate a random string, what are you asking?