flyingsheep
Technical User
i have what i thought would be a fairly simple question which has now turned into a crusade, i am trying to set an variable equal to the contents of a text file, for example:
CONTENTS OF A TEXT FILE named text.txt:
hello world
PSEUDO-CODE (msdos) FOR WHAT I WANT TO DO:
set TEXTSTRING=[the_contents_of_text.txt]
SOME IDEAS THAT DIDNT WORK:
type text.txt>>somevariable
and
type text.txt|set somevariable
if you have any ideas on how i could do this, i am open to any ideas, thanks in advance,
alex
CONTENTS OF A TEXT FILE named text.txt:
hello world
PSEUDO-CODE (msdos) FOR WHAT I WANT TO DO:
set TEXTSTRING=[the_contents_of_text.txt]
SOME IDEAS THAT DIDNT WORK:
type text.txt>>somevariable
and
type text.txt|set somevariable
if you have any ideas on how i could do this, i am open to any ideas, thanks in advance,
alex