openFile and text mode vs. binary mode