title: Getting the last created (modified) file
body: <p>I have a program that created files and fill them with data , it doesn't matter what exactly , it named them based of the actual time (YYYYMMDDHHMMSS). Now I want to  always open the last created file , meaning the recent one, is this possible in C ? if yeah, I'll be greatful for any hint ? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I need to make it clear. </p>
  
  <p>say I have a string  that I want to use like :</p>
  
  <pre><code>..............
  FILE* input = NULL;
  char* fileName = NULL;
  ...............// in some getting the name of the last modified file 
     and than open it 
  inp = fopen(fileName,"rb");
  </code></pre>