title: Reading and writing an array in a file in Python
body: <p>I have an array inside a .txt file. What I want to do is </p>
  
  <ol>
  <li>Reading the length of this array</li>
  <li>Appending this array</li>
  </ol>
  
  
  
  <pre><code>a=[('a'),('b'),('c')]
  f=open("file.txt","w+")
  f.append(a[0])
  </code></pre>
  
  <p>I could not find a way to use my txt file as if an array. Is there any possibility to do that?</p>