Text File Function

If I create a function to call a Text File and want to use the text file. Do i program in the function or in main?
Open the text file where it is needed. If you want to write your code in main, then open the text file in main.
Topic archived. No new replies allowed.