Open GoogleCodeExporter opened 9 years ago
I find a test case.
package main
import (
"os"
"fmt"
"io/ioutil"
)
func main() {
if len(os.Args) < 2 {
fmt.Println("Please specify input file")
return
}
byteBuf,err:=ioutil.ReadFile(os.Args[1])
if err!=nil{
fmt.Println(err)
return
}
str:=string(byteBuf)
fmt.Println(str)
}
Original comment by lionghos...@gmail.com
on 17 Oct 2013 at 12:05
Original issue reported on code.google.com by
lionghos...@gmail.com
on 9 Oct 2013 at 9:05