     stdout.write(stdin.readDataToEndOfFile())
 }
 
-exit(exit_code)
+exit(exitCode)

let stdout = FileHandle.withStandardOutput

// Exit code needs to change if just one error occurs
var exit_code: Int32 = 0

// Grab ARGV by getting process arguments and losing $0 from it
var argv = Array(ProcessInfo.processInfo.arguments.map { $0 as String })


// cat(1) (not a full) clone written in swift
//
// Given no arguments, prints stdin to stdout. Given arguments reads them as
// files, printing content to stdout. Errors on stderr if files not found.
//

import Foundation
