Add support to read code string from file.