Make the second line in a file to a variable?

Microsoft Windows xp professional editio...
September 23, 2009 at 17:46:14
Specs: Windows XP PRO SP3, 3GB
Hi I have two strings in my file data.txt:
adrian
123
I want adrian inside a username variable and 123 into n password variable .I want these two strings to become two different variabels, the first line is easy to solve:

set /p username=<data.txt

But how do I make 123 into a variable? How do I change to the next line and so it not pick the first line again?

Thanks in advance!


See More: Make the second line in a file to a variable?

Report •


#1
September 23, 2009 at 21:09:51
For loop Skip=1


Report •

#2
September 23, 2009 at 23:14:31
... and these posts should be in the Programming Forum on the right of this page!

Home Page http://ewen.uuuq.com/


Report •

Related Solutions


Ask Question