added file stream input in lex