 
       .catch (err) -> reject(err)
 
-  createReadStream: (options) ->
-    @file.setEncoding(options.fileEncoding)
-
-    input = @file.createReadStream()
-    parser = csv.parse(options)
-
-    input.pipe(parser)
-
-    parser.stop = ->
-      input.unpipe(parser)
-      parser.end()
-
-    parser
-
   previewCSV: (options) ->
     new Promise (resolve, reject) =>
       output = []

      input.on 'readable', read
      input.on 'end', end
      input.on 'error', error

  preventFileChangeEvents: -> @nofileChangeEvent = true


fs = require 'fs'
csv = require 'csv'
path = require 'path'
stream = require 'stream'
{CompositeDisposable, Emitter} = require 'atom'
{File} = require 'pathwatcher'
TableEditor = require './table-editor'
