RECEDIT.VBP Demonstrates File I/O in Visual Basic

ID: Q172267


The information in this article applies to:
  • Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0


SUMMARY

This sample demonstrates how to do file input and output using Visual Basic. The sample creates a new database file and allows you to view, add, or delete records in this database.

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:

Recedit.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.


MORE INFORMATION

The techniques in this sample file can be used to view, access, and write to sequential, random, and binary files. After you download and run the self-extracting file, the following files are created:

  • Fileproc.bas(4.30Kb)--The module containing Public Sub and Function procedures for opening files.


  • Readme.txt--The readme file that contains the text of this article.


  • Recedit.bas(309 bytes)--The module containing Public type definitions.


  • Recedit.frm(13.4Kb)--The main form for the sample.


  • Recedit.vbp(516 bytes)--The project file for the sample.


To Run This Project

  1. Start Visual Basic. The New Project dialog box appears.


  2. In the New Project dialog box, click the existing tab and go to the directory with the extracted files. Choose recedit.vbp.


  3. Press the F5 key to run the project.


For more information about file input/output, please see "Processing Files" in the Programmer's Guide.

Additional query words: Dir EOF FileCopy FileDateTime FileLen FreeFile GetAttr Loc LOF Seek SetAttr Close Get Input Input# Open Put Write Write# kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbvba

Keywords : kbfile kbGrpVB
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.