add util function read_rcfile for read configure file.