Learning programming languages

Most tutorials start with variables and types, loops, if statements you know…the basics. But for me I like to move quickly to reading/writing files, so that usually implies at least some type of loop also. Because that is where I’m most likely to need to use the other basics of programming. I also like to know how to comment my code. I’m not that likely to ask for console input and need to do much processing with that. I’m more likely to need to manipulate or get some information from a file. So for a rather simple example, maybe I want to look for a something in a large file. So I’ll need to know some string handling commands and conditionals (such as if) to see if I found the string. So that’s where I usually like to start. Simply reading an input file and writing out the same file. Once I know that…I’ll learn other features out of necessity.