Help Me
Posted: 04 Feb 2018 11:52
I want to make a dictionary that takes string from dic.txt but there is some problem, can someone help me ....
dic.txt
if i set wrd=dog output I want , dog(xxxxxxxxx)
Code: Select all
@echo off
title Dictionary
:menu
cls
set /p wrd=
echo %wrd%
:: Option 1 confusing
:: FOR /F "tokens=* delims=" %%x in (dic.txt) DO FOR /L %%a IN (%wrd%,1,.) DO ECHO :: %%a & set data=%%a
:: Option 2 stuck
For /f "tokens=x delims=." %%A in (dic.txt) do echo %%A
echo %dic%
pause
goto menu
dic.txt
Code: Select all
cat(xxxxxxxxx).dog(xxxxxxxxx).chicken(xxxxxxxxx).