martin2k

Google
 
Web www.martin2k.co.uk

file handling


Home Read and add posts to the Visual Basic 6.0 Forums Download some of my programs and OCXs Read the Tips here The old style forum is still available here Contact

Back


From: Prasanna E-mail: prasanna_1981@javamail.every1.net 1

Date: Sunday, April 29, 2001 at 13:34:45

Subject: file handling

Comments:

My question is 
   
   How to perform file read/write and file open/close operations in VB6.0?

From: Martin Allen E-mail: <No e-mail> 2

Date: Sunday, April 29, 2001 at 18:13:50

Subject: RE: file handling

Comments:

There are many ways to work with the file system with Visual Basic depending on what you want to do.  Here is one example (from the MSDN CD):

Dim InputData
Open "MYFILE" For Input As #1 'Open file for input.
Do While Not EOF(1) 'Check for end of file.
    Line Input #1, InputData 'Read line of data.
    Debug.Print InputData 'Print to the Immediate window.
Loop
Close
#1 'Close file.

This forum is no longer taking new messages or replies since 01 November 2002.  The above material is for reference purposes only.

The new Visual Basic 6.0 forum can be found here.


Martin Allen 1999 - 2003.  Last updated Sunday 25 May 2003 07:59:27 PM +0100.