Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Visual Basic Programming Code Examples

Visual Basic > Code Snippets Code Examples

Create a file

1 2 3 4 5 6 7 8 9 10 11
Create a file 'Creates a file called test1.txt and writes some text into it. Private Sub Form_Load() Open "f:\Test1.txt" For Output As #1 Write #1, "This is some sample text" Write #1, "Hello" Close #1 End Sub