https://github.com/angelozdev/csv_reader_rust
https://github.com/angelozdev/csv_reader_rust
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/angelozdev/csv_reader_rust
- Owner: angelozdev
- License: mit
- Created: 2023-11-25T16:10:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T03:05:06.000Z (over 2 years ago)
- Last Synced: 2025-02-21T19:45:06.462Z (over 1 year ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Pokemon Data Reader
## Overview
A simple Rust application to read and display data from a CSV file containing Pokémon information.
## Features
- Reads data from a specified CSV file.
- Parses each record into a structured format.
- Displays detailed information about each Pokémon.
## Usage
1. Run the program.
2. Enter the path to your CSV file when prompted, or press enter to use the default path (`pokemon_data.csv`).
## Record Structure
Each record in the CSV file should adhere to the following structure:
- `name`: The name of the Pokémon.
- `pokemon_type`: The Pokémon's type.
- `hp`: Health Points.
- `attack`: Attack rating.
- `defense`: Defense rating.
## Dependencies
- `csv`: For parsing CSV files.
- `serde`: For deserializing data into Rust structures.
## Error Handling
Errors in reading the CSV file or processing records are reported to the user.
---
Feel free to contribute or suggest improvements!