Writing FilesThis is a featured page

Create a new console application (File/New) and add the following code to the sub:

Dim Filename As String
Dim Filecontent As String

Console.write("Enter a filename to load the file")
console.writeline()
console.write(my.computer.filesystem.readalltext(console.readline))
console.write("Ok")

Console.writline()
Console.Write("Enter Some Text")
FileContent = Console.ReadLine()
Console.Writeline()
Console.Write("Enter the filename to save the file to")
FileName = Console.Readline()
My.Computer.FileSystem.WriteAllText(Filename, Filecontent, True)
Console.Write("File Written!")



Mrgameruler
Mrgameruler
Latest page update: made by Mrgameruler , May 20 2008, 11:42 AM EDT (about this update About This Update Mrgameruler Edited by Mrgameruler


view changes

- complete history)
Keyword tags: files vb
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)