Results 1 to 2 of 2

Thread: Trying To Add to a File

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Olympia,Wa,USA
    Posts
    7

    Post

    Im trying to write to the end of a .DWG file to add a small
    string this string will allow the teacher to end plagurism in his class but every time i write to the file using methods i know it deletes the entire file (with the exception of the string i added) does anybody know a way to make this work. If so please reply

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    If it is a simple text file then you can open this file in Append mode.
    Code:
    Dim intFFN As Integer
    Dim strPath As String
    
    strPath = "C:\MyFile.txt"
    intFFN = FreeFile
    
    Open strPath For Append As intFFN
    Print #intFFN, "This is an edition to the file."
    Close #intFFN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width