██████╗ ███████╗████████╗ ███╗ ██╗███████╗██╗ ██╗████████╗ ██╗ ██╗███╗ ██╗███████╗
██╔════╝ ██╔════╝╚══██╔══╝ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██║ ██║████╗ ██║██╔════╝
██║ ███╗█████╗ ██║ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║ ██║██╔██╗ ██║█████╗
██║ ██║██╔══╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ██║██║╚██╗██║██╔══╝
╚██████╔╝███████╗ ██║ ███████╗██║ ╚████║███████╗██╔╝ ██╗ ██║ ███████╗███████╗██║██║ ╚████║███████╗
╚═════╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝
The "Get Next Line" project is part of the 42 School program and aims to implement a function in C that reads line by line from a file or file descriptor.
To use the get_next_line
program, follow these steps:
1. Compiling the program with Makefile
In the terminal, navigate to the directory where the Makefile is located. Once there, run the make command. This will compile the source code using the rules defined in the Makefile.
cd /path/to/directory
make
2. Running the program
After successfully compiling the program, an executable file will be generated. You can run it with the following command:
./program input_file.txt