Implemeneted file name extraction  using pathinfo()