Im trying to make a batch-file Encoder, my current problem is that i dont know how to take a text file, and put all the lines into 1 variable
so if my text file is
Hello,
my name is
Benjamin
The variable will be either "Hello,my name isBenjamin" (without Spaces between the lines)
or "Hello, my name is Benjamin" (With Spaces between the lines)
The code is
@echo off
:a
Cls
echo please input a letter
Set /p input=
if %input%==iamdone goto done
Echo>>temp.txt %input%
type>>temp2.txt %input%.txt
Goto a
:done
This is where i would put the commands im asking
help for, then i would output the two variables
(1 from temp.txt and 1 from temp2.txt) into textfiles.
Also im using textfiles to do the encryption, because im not advanced enough yet, so the text file a.txt would contain the encrypted letter a