DavidMacDonald11 / Line-Reader

A basic terminal program to read a specific line of a file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

By default, the make file will compile the program to bin/lineReader. You may need to make modifications to the Makefile for your OS (I'm working on Manjaro Linux).

I wrote this program to create a decently efficient way to read a single line of a file. It's easier than doing it manually in bash everytime, and hypothetically more efficient. I hope this can be useful to you in some way! See the LICENSE file for details.

You can move the generated lineReader file to wherever you need it. Then, run ./lineReader fileName line. This will then print out that line of the file.

Things To Note

If you read from a file that doesn't exist, it will output nothing. If you read a line that doesn't exist, it will output nothing. It will output the line without a newline character.

Future Plans

  • Adding the ability to read multiple lines at once.

About

A basic terminal program to read a specific line of a file.

License:MIT License


Languages

Language:C++ 63.7%Language:Makefile 36.3%