title: How can I pass a .txt file as a function parameter
body: <p>Say I have a function that reads a .txt file and creates arrays based on the columns of the data within that file. What I have right now inside the function looks like:</p>
  
  <pre><code>data = open("some_file_name.txt","r")
  </code></pre>
  
  <p>But if I want to change the .txt file that the function reads I have to manually go into the code and type in the new file name before running it again. Instead, how can I pass any file name to the function so it looks like:</p>
  
  <pre><code>my_function(/filepath/some_file_name.txt):
      data = open("specified_file_name.txt","r")
  </code></pre>