Every now and then I have to delve into using batch files to achieve something, sometimes this is from with in windows, sometimes it from a Dos boot floppy.
And every now and then I hit a stumbling block - today’s one involves getting a the contains of a file into a variable, in this case there is only one word in the file, but I'd also like to know how to specify while line of the file I'd like to read - although I'd settle for reading the file line by line till I found a match.
But I digress, in summary how to I get the contains of a file into a variable?