|
@@ -28,10 +28,10 @@ func main() {
|
|
|
inputReader := bufio.NewReader(inputFile)
|
|
inputReader := bufio.NewReader(inputFile)
|
|
|
for {
|
|
for {
|
|
|
inputString, readerError := inputReader.ReadString('\n')
|
|
inputString, readerError := inputReader.ReadString('\n')
|
|
|
|
|
+ fmt.Printf("The input was: %s", inputString)
|
|
|
if readerError == io.EOF {
|
|
if readerError == io.EOF {
|
|
|
return
|
|
return
|
|
|
- }
|
|
|
|
|
- fmt.Printf("The input was: %s", inputString)
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
@@ -75,7 +75,7 @@ func main() {
|
|
|
fmt.Printf("%s\n", string(buf))
|
|
fmt.Printf("%s\n", string(buf))
|
|
|
err = ioutil.WriteFile(outputFile, buf, 0644) // oct, not hex
|
|
err = ioutil.WriteFile(outputFile, buf, 0644) // oct, not hex
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
- panic(err. Error())
|
|
|
|
|
|
|
+ panic(err.Error())
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|