a simple text file save "?"


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: a simple text file save "?"

  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!



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center