title: Creating a .txt error output file in protractor made manually not console errors
body: <p>Hello guys I'm kinda new to js and protractor and I just found out it can't create and modify files, so the question I want to ask is:
  Is it possible  to manually write test cases logic fails to a text file for example:
   I know the code is not correct but you will get the idea i know about jasmine-reporters and with xml file output but it just prints console errors i want one that is custom liek the one below</p>
  
  <pre><code>describe('File output test', function() {
    it('should have a title', function() {
      browser.ignoreSynchronization=true; 
      browser.get('https://www.google.com');    
  
    });
  
    it('Tests output file',function(){      
        var searchText = $('#lst-ib');
        searchText.sendKeys('Testt')
        searchText.sendKeys(protractor.Key.ENTER);
        browser.sleep(3000);
        if(browser.getTitle() != 'Test')
        {
            var txtFile = "C:\Users\y\Desktop\test.txt";
            var file = new File(txtFile);
            var url = browser.getCurrentUrl();
            file.open("w");         
  
            file.writeln("Error at " + url);
            file.close();
        }
  
  
  
    });
  });
  </code></pre>
  
  <p>conf file pretty basic:</p>
  
  <pre><code>exports.config = {
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['spec.js']
  }
  </code></pre>
  
  <p>So I simply want to check for the given title at the moment and if it is different from the expected one i want to save the url in an output file so when the test ends i can check afterwards where exactly did something i didnt want happened. I hope I am not talking nonsense </p>