assignfile(outfile,filename);
  if not(FileExists(filename)) then
    rewrite(outfile)
  else
    reset(outfile);
  writeln(mCurFile.mFileName);
closefile(outfile);