openBuffer: opens file correctly