 
 extension FileHandle: ReadableStreamType {
 	
-	public func readSome() -> String? {
+	public func readSome () -> String? {
 		let data: NSData = self.availableData
 		if data.length == 0 {
 			return nil

	case Read, Write, ReadAndWrite
}

public func open(path: String, mode: FileMode = .Read) -> FileHandle {
	var filehandle: FileHandle?
	switch mode {
		case .Read:

		}
	}
	
	public func read () -> String {
		let data: NSData = self.readDataToEndOfFile()
		return NSString(data: data, encoding: streamencoding) as String
	}
	
	public func lines () -> SequenceOf<String> {
		return split(delimiter: "\n")(stream: self)
	}

	public func writeTo<Target : OutputStreamType> (inout target: Target) {
		target.write(self.read())
	}

