https://github.com/raresracsan/gettextforchatgpt
https://github.com/raresracsan/gettextforchatgpt
chatgpt cpp filemerge
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/raresracsan/gettextforchatgpt
- Owner: RaresRacsan
- Created: 2024-07-12T09:02:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T11:14:31.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T06:44:04.679Z (over 1 year ago)
- Topics: chatgpt, cpp, filemerge
- Language: C++
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File merger in C++
This C++ program merges the contents of all `.cpp` and `.h` files in the current directory into a single output file named `merged_files.txt`. Each file's content is prefixed with the file name for clarity. (For other extensions of files change in the code where it is commented.)
## Prerequisites
- C++ compiler supporting C++17 or later.
- Standard Library's `` support.
## Building the Program
Compile the code:
```
g++ -std=c++17 -o textFromFiles textFromFiles.cpp
```
## Running the Program
To run the program:
```sh
./textFromFiles
```