By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

file writing

P: 30
I need the file name to be the date and the studnets name and have new file every time I open it

'Pass the file path and the file name to the StreamWriter constructor.
objStreamWriter = New StreamWriter("H:\vb\test.txt")
'Write a line of text.
objStreamWriter.WriteLine(MyTime) 'Write a second line of text.
'Close the file.
fileReader = My.Computer.FileSystem.ReadAllText("H:\vb\test.txt ")
Dec 11 '07 #1
Share this Question
Share on Google+
1 Reply

P: 30
i guess what my real qustion is. can i make the the file name a variable
Dec 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.