-
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!
-
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
Forum Rules
|
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
|
Bookmarks