I hope that someone can help me with this.
Lets say that I want to let the user of a program edit the text in a file..
Then of course he must be able to print text, and remove text.
I dont want to work against the file directly, but against a file buffer, lets say that it would be called textBuffer[].
the start location in the edit mode, would be after the last character in the textBuffer[] array..
if the user presses backspace, one char at the time will be removed from the textBuffer[] array, the screen would have to be cleared, and the textBuffer[] array outputted to the screen again..
the user should also be able to print something to the textBuffer[], where ever he is lokated, exept at textBuffer[tb_size] location ofcourse..
**The filehandling part is already done, so I dont need help with that... But I would really appriciate if someone could help me with the other stuff.
Thanks in advance!!