How to read from file and write on terminal So I am trying t
How to read from file and write on terminal.
So I am trying to write a program that is similar to the linux vi text editor editor.
I just dont know how to diplay the text on the terminal.
I know I will have to read() from the open file but how do I write() to the terminal.
Solution
You can write a file on Terminal by directly using the command -
