![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Hello all,
I haven't worked with flat files in a while ande cant get it to append data i have this code thus far and it not appending the data dim fs,fname, pathF
const forAppending = 8
pathf=server.mappath("err.txt")
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile(pathf, forAppending, true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothingthanks for your help |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Location: Lisbon, CT
Posts: 9
Rep Power: 0
![]() |
change this
set fname=fs.CreateTextFile(pathf, forAppending, true) to this set fname=fs.OpenTextFile(pathf, forAppending, true) Create does not use the append parameter. Open does. BaldEagle
__________________
If you can't be kind, at least have the decency to be vague. You may be only one person in the world, but you may also be the world to one person. We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names, and all are different colors, but they all manage to live comfortably in the same box. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|