echo %%B>>"word.txt"
save work perfectly
-----------------------------------------------------------
for /f "delims=" %%A in ('type "%input%"') do (
for %%B in (%%A) do (
echo %%B>>"word.txt"
-----------------------------------------------------------
thank you
actually, each one of word will be save as a list + code
example
"I washed the car yesterday"
save in to word.txt as a list+code and look like this
"
if "%word%"=="I" set CODE
if "%word%"=="washed" set CODE
if "%word%"=="the" set CODE
if "%word%"=="car" set CODE
if "%word%"=="yesterday" set CODE
"
how to save each word and became like that?
i try this script
for /f "delims=" %%A in ('type "%input%"') do (
for %%B in (%%A) do (
echo %%B
set "code=if "%word%"==""
set "code2= set CODE"
set "word=%%B"
set "output=%code%%word%%code2%"
echo %output% >> "word.txt"
echo word " %%B " now save
if "%%B"=="" goto somewere
)
)
:somewere
pause
if "%word%"=="I" set CODE -
i apart this line into 3 setif "%word%"=="I" set CODEset "code=if "%word%"==""
part oneset "word=%%B"
part threeset "code2= set CODE"
part twoand this 3 set became set output
set "output=
%code%%word%%code2%"
hope became like i want...
"
if "%word%"=="I" set CODE
if "%word%"=="washed" set CODE
if "%word%"=="the" set CODE
if "%word%"=="car" set CODE
if "%word%"=="yesterday" set CODE
"
but on word.txt show like this
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
other one...
how to separate text? line? and paragraph?
example
As a describer of life and manners, he must be allowed to stand perhaps the first of the first rank. His humour, which, as Steele observes, is peculiar to himself, is so happily diffused as to give the grace of novelty to domestic scenes and daily occurrences. He never "o'ersteps the modesty of nature," nor raises merriment or wonder by the violation of truth. His figures neither divert by distortion nor amaze by aggravation. He copies life with so much fidelity that he can be hardly said to invent; yet his exhibitions have an air so much original, that it is difficult to suppose them not merely the product of imagination.
separate text by textAs a describer of life and manners,
he must be allowed to stand perhaps the first of the first rank.
His humour,
separate line by lineAs a describer of life and manners, he must be allowed to stand perhaps the first of the first rank.
His humour, which, as Steele observes, is peculiar to himself, is so happily diffused as to give the grace of novelty to domestic scenes and daily occurrences.
separate paragraph by paragraph
As a describer of life and manners, he must be allowed to stand perhaps the first of the first rank. His humour, which, as Steele observes, is peculiar to himself, is so happily diffused as to give the grace of novelty to domestic scenes and daily occurrences. He never "o'ersteps the modesty of nature," nor raises merriment or wonder by the violation of truth. His figures neither divert by distortion nor amaze by aggravation. He copies life with so much fidelity that he can be hardly said to invent; yet his exhibitions have an air so much original, that it is difficult to suppose them not merely the product of imagination.