Skip to content

hheydarian/FileAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Analyzer

A C# Console Application designed to scan text files in a directory for specific patterns (such as email addresses) using Regular Expressions (Regex). The application saves the found patterns into a structured JSON file.

This project demonstrates practical usage of:

  • File I/O: Reading and writing files.
  • Regular Expressions (Regex): Pattern matching.
  • Serialization: Converting objects to JSON using System.Text.Json.

Features

  • Recursive Scanning: Searches through a specified directory and all subdirectories.
  • Configurable: Uses settings.json to define the target folder and search patterns.
  • JSON Output: Saves results in a clean, readable JSON format.
  • Error Handling: Robust error handling for file access and parsing issues.

Prerequisites

  • .NET 8.0 SDK or higher.
  • A code editor like Visual Studio 2022, Rider, or VS Code.

Installation & Setup

  1. Clone the repository:
    git clone https://github.com/hheydarian/FileAnalyzer.git
    cd FileAnalyzer

About

A C# Console App to scan files for patterns (Regex) and save results to JSON.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages