I'm so smart!

ElseIf Console.ReadLine = "E" Then Console.WriteLine("What class do you want to edit: [M]ath, [S]cience, or [E]nglish?") If Console.ReadLine = "M" Then Console.WriteLine("Change " + My.Computer.FileSystem.ReadAllText("C:\school\s1\m.txt") + " to:") My.Computer.FileSystem.WriteAllText("C:\school\s1\m.txt", "", False) Dim file As System.IO.StreamWriter file = My.Computer.FileSystem.OpenTextFileWriter("c:\school\s1\m.txt", True) file.WriteLine(Console.ReadLine) file.Close() Console.WriteLine("Successfully changed grade.")
PLEASE ADMIRE MY PROGRAMMING SKILLS! I GOT IT THIS PART OF MY PROGRAM TO WORK!

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.