I think it best to learn how to code by working on an actual project. You seem to already have a project in mind, and I think that would be a fine project.
Break it up into steps. First write a program that opens a file, reads the book titles and displays them on the terminal. Then write a program that makes some sort of network connection; maybe download the HTML contents of a website. Etc., etc., until you've learned how to do the various subtasks involved with your project, and then assemble it all together.
I'd suggest that Python would be a good language to start with. I personally like the O'Reilly book Learning Python, though there are many options.