title: appcelerator titanium: Creating a new file
body: <p>How to create a new file in appcelerator titanium. </p>
  
  <pre><code>  var Settings = Titanium.Filesystem.getFile(Titanium.Filesystem.tempDirectory,'Settings');
    Ti.API.info("Created Settings: " + Settings.createDirectory());
    Ti.API.info('Settings ' + Settings);
    var newFile = Titanium.Filesystem.getFile(Settings.nativePath,'Settings.txt');
    newFile.write('line 1\n');
    Ti.API.info('newfile: '+newFile.read());
  </code></pre>
  
  <p>The Above code is not working... </p>