Environment set up from initContainer

If I set up something and put it into a text file in the initContainer, then I need to set an environment by reading the text file from initContainer, how can I do it? Thanks.
-Eric