chore: deploy initial code base #1

Merged
bermudalamb merged 1 commits from feature/initial-code-base into main 2026-05-12 10:43:50 -05:00
Owner

PR Summary: Initial Base Code for SplitFile

This PR establishes the initial foundational load for the splitfile utility. It introduces a lightweight, efficient C# console application designed to deconstruct large delimited text files into smaller, manageable segments.


Core Functionality

  • Stream-Based Splitting: Implements a StreamReader/StreamWriter pattern to process large files line-by-line, ensuring low memory overhead regardless of the source file size.
  • Header Preservation: Includes logic to detect and replicate the header row across all generated sub-files, maintaining data integrity for downstream processing.
  • Intelligent File Sizing: Automatically calculates segment sizes (defaulting to 10% of the original file) or accepts custom maxSize constraints.
  • Flexible Formatting: Supports configurable output file naming conventions via standard C# string formatting (e.g., gmdnTerms-{0:000}.txt).

Project Components

File Description
Program.cs Contains the core Split logic, including encoding detection and file stream management.
splitfile.csproj Configured for .NET 6.0 with Implicit Usings and Nullable reference types enabled.
splitfile.sln Visual Studio 2022 solution file for local development.

Usage Notes

The current entry point is configured to process the AccessGUDID delimited release files. To target different files, update the path, input, and format variables within Main.


Note for Reviewers: This is a focused initial commit (3 files) that provides a functional baseline for file manipulation. The implementation includes a finally block to ensure all file handles are properly disposed of, even in the event of an I/O failure.

## **PR Summary: Initial Base Code for SplitFile** This PR establishes the **initial foundational load** for the `splitfile` utility. It introduces a lightweight, efficient C# console application designed to deconstruct large delimited text files into smaller, manageable segments. --- ### **Core Functionality** * **Stream-Based Splitting**: Implements a `StreamReader`/`StreamWriter` pattern to process large files line-by-line, ensuring low memory overhead regardless of the source file size. * **Header Preservation**: Includes logic to detect and replicate the header row across all generated sub-files, maintaining data integrity for downstream processing. * **Intelligent File Sizing**: Automatically calculates segment sizes (defaulting to 10% of the original file) or accepts custom `maxSize` constraints. * **Flexible Formatting**: Supports configurable output file naming conventions via standard C# string formatting (e.g., `gmdnTerms-{0:000}.txt`). ### **Project Components** | File | Description | | :--- | :--- | | **Program.cs** | Contains the core `Split` logic, including encoding detection and file stream management. | | **splitfile.csproj** | Configured for **.NET 6.0** with Implicit Usings and Nullable reference types enabled. | | **splitfile.sln** | Visual Studio 2022 solution file for local development. | ### **Usage Notes** The current entry point is configured to process the `AccessGUDID` delimited release files. To target different files, update the `path`, `input`, and `format` variables within `Main`. --- **Note for Reviewers:** This is a focused initial commit (3 files) that provides a functional baseline for file manipulation. The implementation includes a `finally` block to ensure all file handles are properly disposed of, even in the event of an I/O failure.
bermudalamb added 1 commit 2026-05-12 10:43:38 -05:00
bermudalamb merged commit ef1822e1b3 into main 2026-05-12 10:43:50 -05:00
bermudalamb deleted branch feature/initial-code-base 2026-05-12 10:43:50 -05:00
Sign in to join this conversation.