title: How to get user input in fopen
body: <p>Probably obvious, but even my clever "how to c" book doesn't really help me here. I just started with C programming, so sorry if the answer eludes me.</p>
  
  <p>I use <code>fopen("%s.txt", "w+")</code> in order to save a textfile. However I have no idea how the user can input a string for %s. I tried it with scanf and other variations. But nothing worked yet.</p>