File Converter

C#
GitHub Repository

File Converter

The File Converter is a C# project designed to convert files between several formats, including JSON, CSV, Markdown (MD), and HTML. This project was developed during my university studies and tested on Windows 10 using Visual Studio Code.

Features

  • Format Conversion: Convert files between CSV, JSON, MD, and HTML formats.
  • Console Application: Accepts input and output file paths through the command line, making it easy to automate conversions.
  • Error Handling: Detects and handles incorrect file paths and formats.
  • Helper Commands: Provides various commands such as -verbose, -list-formats, and -help for better user interaction.
  • Cross-format Parsing: Parses and extracts data from supported file formats and outputs them in the desired format.

Supported Formats

  • CSV: Converts to and from CSV files.
  • JSON: Parses JSON files and outputs them into other formats or converts files into JSON.
  • HTML: Supports HTML table parsing and conversion.
  • Markdown (MD): Handles Markdown file format for conversion to/from other types.

Command-Line Options

  • -v | -verbose: Enables verbose mode, providing detailed output during file conversion.
  • -o <file> | -output=<file>: Specifies the output file.
  • -l | -list-formats: Lists all the available formats (CSV, JSON, HTML, MD).
  • -h | -help: Displays the help menu with available options.
  • -i | -info: Shows version information of the program.

Prerequisites

  • Visual Studio Code or any C# compatible IDE.
  • .NET runtime installed on your machine.

How to Use

Run the application through the command line by specifying an input file, an output file, and optional flags: bash dotnet run input.csv output.json -v

Contact

For any inquiries or feedback, feel free to reach out to:

Jevgenij Ivanov
Email: ladnopokaa@gmail.com

GitHub: https://github.com/Ladnopoka
itch.io: https://ladnogames.itch.io/
YouTube: https://www.youtube.com/@LadnoDev
X: https://x.com/Ladnopokaa
Discord: https://discord.gg/BPsncTZe