FSO - Webpage

Results 1 to 3 of 3

Thread: FSO - Webpage

  1. #1
    raji Guest

    Default FSO - Webpage

    can someone direct me the web page which i can create Text file using File System Object

  2. #2
    manual Guest

    Default RE: FSO - Webpage

    Ahh, if you are talking about a page that will teach you how to make a web page. I&#039m sure you can find that info here or some place like www.4guysfromrolla.com<BR><BR>If you just need the code:<BR><BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR>Set objOutput = objFSO.CreateTextFile(var_FilePath & "whatever.txt")<BR><BR>objOutput.Writeline "Put whatever you want here"<BR>objOutput.Writeline "As many times as you want :)"<BR><BR>Set objOutput = Nothing<BR>Set objFSO = Nothing

  3. #3
    raji Guest

    Default RE: FSO - Webpage

    Please can u correct me .It says file already exists.<BR><BR>I&#039m like if file is already there then i want to append data else create new file and append data<BR><BR>Please tell me where i&#039m wrong<BR><BR>if (csv_filename &#060;&#062; "") then<BR>Set oFileSys = CreateObject("Scripting.FileSystemObject")<BR><BR> Const ForAppending = 8<BR>Const ForWriting = 2<BR>&#039response.write("filename=" & filename)<BR>&#039response.end<BR>if oFileSys.FileExists(filename) then<BR>Set oFile = oFileSys.OpenTextFile("filename",ForAppending)<BR> else<BR>filename = "/ombgt/am.txt"<BR>&#039response.write("filename=" & filename)<BR> &#039response.end<BR>Set oFile = oFileSys.CreateTextFile("filename",False)<BR>heade r_line = BuildHeaderLinePost(cbarray)<BR>&#039header_line = mid(header_line,instr(header_line,",") + 1)<BR>oFile.write header_line & chr(13) & chr(10)<BR> end if<BR><BR><BR><BR><BR>message = (SurveyItemsPOST ( CBArray ) & chr(13) & chr(10))<BR><BR> oFile.write cmessage<BR> oFile.close<BR><BR> end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts