DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    carlino Guest

    a simple text file save "?"


    all I need is a way to append a text string on to the end of a text file.
    i can't seem to use the OPEN / PUT commands successfully to do so. Also,
    I can assume I will have trouble reading the files later on. Can someone
    help me with this? Thanks!

  2. #2
    Arthur Wood Guest

    Re: a simple text file save "?"


    Carlino,
    When you Open the file do it like this:

    Dim lFileNo as Long

    lFileNo = FreeFile

    Open <path to your file> FOR APPEND as #lFileNo

    the key here is the KeyWord APPEND which means that you are going to ADD
    the text lines on the end of the existing file.

    Look up the Open Statement in the VB Help System for the details.

    Arthur Wood


    "carlino" <carlinopsu@yahoo.com> wrote:
    >
    >all I need is a way to append a text string on to the end of a text file.
    > i can't seem to use the OPEN / PUT commands successfully to do so. Also,
    >I can assume I will have trouble reading the files later on. Can someone
    >help me with this? Thanks!



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links