Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 2.23 KB

README.md

File metadata and controls

37 lines (25 loc) · 2.23 KB
	 ██████╗ ███████╗████████╗        ███╗   ██╗███████╗██╗  ██╗████████╗        ██╗     ██╗███╗   ██╗███████╗
	██╔════╝ ██╔════╝╚══██╔══╝        ████╗  ██║██╔════╝╚██╗██╔╝╚══██╔══╝        ██║     ██║████╗  ██║██╔════╝
	██║  ███╗█████╗     ██║           ██╔██╗ ██║█████╗   ╚███╔╝    ██║           ██║     ██║██╔██╗ ██║█████╗  
	██║   ██║██╔══╝     ██║           ██║╚██╗██║██╔══╝   ██╔██╗    ██║           ██║     ██║██║╚██╗██║██╔══╝  
	╚██████╔╝███████╗   ██║   ███████╗██║ ╚████║███████╗██╔╝ ██╗   ██║   ███████╗███████╗██║██║ ╚████║███████╗
	 ╚═════╝ ╚══════╝   ╚═╝   ╚══════╝╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝╚══════╝╚═╝╚═╝  ╚═══╝╚══════╝

Gets_Next_Line


Description

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.


Usage

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