I am writing a library program and I want to organize data on books in a .txt file. I want to be able to change the title of the book as I want instead of rewriting the title after printing it on the screen.
char bookName[30] = "A Clockwork Orange";
printf("Edit Book Name --> %s", bookName);
gets(bookName);
If I use the program I wrote above, it will be like this:
Edit book name -> _
the cursor will stop here (_) and I will have to rewrite the title.
I want to do this:
Edit book name -> A Clockwork Orange_
I want to change the bookName variable I printed on the screen, not rewrite it.
I would be glad if you help