View Single Post
  #4 (permalink)  
Old December 30th, 2011, 12:12 PM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Hi Gary,

Yes txtFileName is a TextBox where you can enter the name of the file for the program to manipulate.

AppendText is defined in the System.IO.File class. You can use it as in:


That example includes the class in an Include statement so it can use the short version you see.

Include System.IO.File

(In general when you're looking at an example, you should download it so you can see what Includes statements it uses. (And so you can see the txtFileName TextBox and other controls.))

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote
The Following User Says Thank You to Rod Stephens For This Useful Post:
Gary108 (December 31st, 2011)