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.
- Recursive Scanning: Searches through a specified directory and all subdirectories.
- Configurable: Uses
settings.jsonto 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.
- .NET 8.0 SDK or higher.
- A code editor like Visual Studio 2022, Rider, or VS Code.
- Clone the repository:
git clone https://github.com/hheydarian/FileAnalyzer.git cd FileAnalyzer