I was tasked with creating a command line text editor in just two weeks by my friend, and I think it would actually be pretty fun to do. I'm allowed to use any resources available, I just have to complete it by the deadline, which is why I'm here.
What I'm going for is reading the contents of the file the user specifies and then printing them line by line, and then making them editable. Is there any way to do this? If so, could you show me how?
P.S. I'm on Mac.
I've never tried, but I believe it's entirely possible.
Try starting with those libraries: