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
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