title: Lazarus error: Can't take the address of constant expressions
body: <p>i want to make a simple program to read files in lazarus. But when i try to read a line from txt file compiler give me this error: "Can't take the address of constant expressions"</p>
  
  <p>There is that problematic part -</p>
  
  <pre><code>system.Assign(MyFile, label1.caption + '.txt');
    reset(MyFile);
    Readln(MyFile,name);  - this give that error
  </code></pre>
  
  <p>Any suggestion to solve this? </p>