title: Can't write file in classic asp
body: <p>Ok, it's been a while since I've worked with classic asp so I'm a bit rusty. Here's my question.</p>
  
  <p>I'm trying to write a file to the file system using FSO. The code below is very simple. However, the file is not appearing and no errors are appearing. I know it's running the code because I can add response.writes before and after this snippet and they both appear in the output. However, no file is created, no error is thrown. I've even changed it so it's a bogus path to force an error. No dice. I added everyone to have read and write on the directory permissions. Still the same.</p>
  
  <p>Ideas?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>Dim objFSO
  Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
  
  'Open the text file
  Dim objTextStream
  Set objTextStream = objFSO.OpenTextFile("d:\test.txt", True)
  
  'Display the contents of the text file
  objTextStream.WriteLine "howdy"
  
  'Close the file and clean up
  objTextStream.Close
  Set objTextStream = Nothing
  Set objFSO = Nothing
  </code></pre>