From 795e6a80aeb1962e70a6e958855fbfd2717666b0 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 8 Dec 2023 16:44:13 -0500 Subject: [PATCH] added instructions for windows users --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 26ce22f..08ea672 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # checkdigitCalculator -This is a calculator written in Go to process a text file of a large list of UPCs calculating their Check Digits. \ No newline at end of file +This is a calculator written in Go to process a text file of a large list of UPCs calculating their Check Digits. + +## Instructions + +### Windows +#### Create Directory and "Install" Program +1. Create a directory, that you will remember and is easy to to type, to copy the binary (checkdigitcalc.exe) into. +2. Copy the binary into that directory. +#### Prepare Text File +1. Open a Text Editor and Paste UPCs (taking care to remove any Alphabet characters). +2. Save the file with any name you want ending in .txt or .csv in the directory where you put the program. (ie: upcs.txt) +#### Run the program +1. Copy the location of the directory from File Explorer +2. Open cmd.exe or PowerShell +3. type "cd " (don't forget the space) and press Shift+Insert (or Right Click) and press Enter. +4. Back in the commandline program type checkdigitcalc.exe (I like to type check and then press tab). +5. The program will ask for the name of the file. Type the name of the text file you created including the extension (.txt or .csv) (ie. upcs.txt) +6. When the program finishes, it will exit. Open the answer.txt file that was produced/rewritten by the program. \ No newline at end of file