 		return mFileHandle.availableData
 	}
 
-	public func getData(ofLength len: Int) -> Data {
-		return mFileHandle.readData(ofLength: len)
-	}
-
 	public func getAllData() -> Data {
 		return mFileHandle.readDataToEndOfFile()
 	}


public class CNTextFileObject: CNDataFileObject, CNTextFile
{
	public static let 		CHUNK_SIZE = 512
	private var mLineBuffer:	CNLineBuffer

	public required init(fileHandle handle: FileHandle) {

			if let c = mLineBuffer.getChar() {
				return c
			} else {
				let newdata = getData()
				if newdata.count == 0 {
					/* end of file */
					close()
