title: Create a Google Doc file directly in a Google Drive folder
body: <p>How do I create a Google document in a Google Drive folder?</p>
  
  <p>I know that I can create a file in a folder like this.</p>
  
  <pre><code>var folder = DriveApp.createFolder("A Folder")
  folder.createFile("filename.file", "Some text")
  </code></pre>
  
  <p>But how I can create a <strong>document</strong> in a folder using Google Apps Script.</p>