read_context function

Read files in different contexts