Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILE WRITING

Status
Not open for further replies.

100dtl

Programmer
Aug 18, 2003
313
GB
Can anyone tell me if this will append the the iperrors.txt file?

ipaddress = Request.servervariables("REMOTE_ADDR")
strIpFileName = Server.MapPath("iperrors.txt")
Set IPObj = Server.CreateObject("Scripting.FileSystemObject")
if IPObj.FileExists (strIpFileName) then
Set objIpTs = IPObj.OpenTextFile(strIpFileName,8,true)
else
Set objIpTs = IPObj.CreateTextFile(strIpFileName,true)
end if

objIpTs.WriteLine ipaddress

objIpTs.close

set objIpTs = Nothing


I need it to open save contents and then add some
 
yup ur method must work, whats the error?

Known is handfull, Unknown is worldfull
 
Well I've just had reported over 300 errors which i then catch an ipaddres but theres on 6 in?
 
>>Well I've just had reported over 300 errors which i then catch an ipaddres but theres on 6 in?

whats that supposed to mean?

Known is handfull, Unknown is worldfull
 
If an id does not exist on a dynamic menu I spporterr.asp file sends me an email, this then tells me there is something wrong at theat particuluar area. On this occasion its the menu's, is that clearer?
 
nope, i would like a full scale explanation...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top