scans a specific directory for file information and creates a text file output with that information