doucheng1884 2018-11-08 21:59
浏览 736
已采纳

ioutil.WriteFile函数的参数中的数字

Programming with Go, I noticed that the function ioutil.WriteFile (from the ioutil library) needs some numbers as arguments. What do these numbers mean?

Example:

ioutil.WriteFile(file_to_write, []byte(string_to_write), 0644) // what 0644 stands for?

  • 写回答

1条回答 默认 最新

  • dsp15140275697 2018-11-09 04:07
    关注

    These numbers are file permission bits.

    To know what these bits means see : permissions (flags) explained

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?