Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Open a file for writing
 

 

Open a file for writing to

Private Sub Form_Load()

Dim objFso As New FileSystemObject
Dim objFile As Object
Set objFile = objFso.OpenTextFile("f:\Test.txt", ForWriting)
objFile.Write "Hello World"
objFile.Close

End Sub

Notes:

Make sure you add a reference to the Microsoft Scripting library.
Change the file and path to one which you will write to.

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Random passwords(VB)
filesystem(vb)
List all files in a directory(VBnet)
IPaddress(VB)
Display meta tags(PHP)
change windows color scheme(VB)
Launch Add New Hardware wizard(VB)
Populate a combo box(ASP)

    




Copyright © 2003 by programmershelp.co.uk