p.s. Yet another example of why Option Explicit is a good thing! :]
Ray at work > -----Original Message----- > From: Andy and Kim Mills [mailto:[EMAIL PROTECTED] > > I can't seem to figure out what is wrong with this statement. > > fileLocation = Server.MapPath("MessageBoard.txt") > Set objFSO = Server.CreateObject("Scripting.FileSystemObject") > If (objFSO.FileExists(fileLocation)) Then > *Set objFile = objFSO.OpenTextFile(fileLocation, ForWriting, False) > objFile.Close > Set objFile = Nothing > End If > Set objFSO = Nothing > > I get an Invalid Procedure Call or Argument on the line I > marked with an *. This is what Microsoft says the line ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
