Yes, I was thinking the same when I saw this code earlier.. it's a shame to get the mode when it was known at the time CFileIO was created - I think it should be a member.