is it possible to load the contents of a text file into a variable in a batch file.
I have to read a .txt file and have to store the contents of that file in a variable using the batch command.
Hey I'm seeing double! and I haven't touched a drop... well, not much! Are you guys in the same class at school? Or in different schools in the same education system? Is there some kind of homework deadline looming somewhere in the world?
Guys, you have to be clearer about what you want to do. Understand the task and your homework will be easier for YOU to do. You want to take the whole contents of a text file , an arbitrary number of lines, and store ALL OF THAT in one miserable little batch file variable? It would explode! That can't be what you mean, obviously. Until you clarify what is wanted, no useful help will be forthcoming. In fact, on here we like to see some examples of work you have done. We don't do people's homework for them.
Maybe, in the interests of clarity, you could try scanning your homework assignments and posting the jpg on here