For the shortest possible code snippet, you can use File.WriteAllText:
File.WriteAllText("C:\Users\F\Documents\Temp junk\sundae.txt", "5")
File.WriteAllText("C:\Users\F\Documents\Temp junk\banana.txt", "5")
If you want to keep using your approach, it is generally preferable to keep your file open for as short as possible. I would wrap your file operations into Using blocks, this way StreamWriter is disposed (and closed) automatically:
Using tw As New System.IO.StreamWriter("C:\Users\F\Documents\Temp junk\sundae.txt", True)
tw.WriteLine("5")
End Using
Using tw As New System.IO.StreamWriter("C:\Users\F\Documents\Temp junk\banana.txt", True)
tw.WriteLine("5")
End Using
Notice here that even though you are technically using different tw objects, you can keep the same name, if it makes code more readable for you.