Re: Append new line to Text File
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Wed, 30 Aug 2006 22:53:12 -0400
Ha! -- For Append, not For Output. <g>
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
Please reply to the newsgroups so all can participate.
"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in
message news:B9OdnbyJ7rTf0GvZnZ2dnUVZ_rOdnZ2d@xxxxxxxxxxxxxx
I would like to append a new line to a text file for example:
somethin somethinsomethin2 some
New Line
How would I go about doing this?
Dim FF As Long
Dim FileNameAndPath As String
Dim NewLineToOutput As String
FileNameAndPath = {fill in with your filename and its path}
NewLineToOutput = "New Line"
FF = FreeFile
Open FileNameAndPath For Output As #FF
Print #FF, NewLineToOutput
Close #FF
Rick
.
- Follow-Ups:
- Re: Append new line to Text File
- From: Rick Rothstein \(MVP - VB\)
- Re: Append new line to Text File
- References:
- Append new line to Text File
- From: Dan
- Re: Append new line to Text File
- From: Rick Rothstein \(MVP - VB\)
- Append new line to Text File
- Prev by Date: Re: directory listing, mp3 files
- Next by Date: Re: Append new line to Text File
- Previous by thread: Re: Append new line to Text File
- Next by thread: Re: Append new line to Text File
- Index(es):
Relevant Pages
|