More On User Input
Posted: 21 May 2010 19:05
Why doesn't this code work?
when you open the file makes it only prints out the addItem(,)
Code: Select all
@echo off
cls
title Java Code Generator
echo An example of an item number would be: 995
set /p itemNumber =Please type the item number here:
pause
echo The number of items can range from 1 to 999999999 in most cases.
set /p numberOfItem =Please type the number of that item here:
echo addItem(%itemNumber%,%numberOfItem%) > AddItemCode.txt
pause
cls
echo Your code has been place in a .txt file named AddItemCode.txt. You will find this file in the directory this program is in.
pause
exit
when you open the file makes it only prints out the addItem(,)