[go-nuts] can't open file if its name was read from stdin

2017-08-24 Thread Dave Cheney
Check the error from ReadString to find out why it's returning a empty string. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] can't open file if its name was read from stdin

2017-08-24 Thread buzzersdad
Does anyone know why Google Go program 1 works, below, and program 2 doesn't? The only difference - I read in the filename from the console in the one that doesn't work but it is a literal in the one that works... I tried typing in the full path for the file, and also "..sample.txt" instead of