fix the warning when open file. because the R character is constant, and
the linefile opne accepts a variable char