File Operations in Go: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Go Code Examples#Code_Examples|Go Code Examples]] | * [[Go Code Examples#Code_Examples|Go Code Examples]] | ||
* [[Go Package os]] | |||
* [[Go Package ioutil]] | * [[Go Package ioutil]] | ||
=Overview= | =Overview= | ||
Basic file read and write, by reading or writing the entire file into and from memory, is also provided by the [[Go Package ioutil|<code>ioutil</code> package]], but its <code>[[Go Package ioutil#Overview|ioutil.ReadFile]]</code> and <code>[[Go Package ioutil#Overview|ioutil.WriteFile]]</code> are deprecated since Go 1.16. | Basic file read and write, by reading or writing the entire file into and from memory, is also provided by the [[Go Package ioutil|<code>ioutil</code> package]], but its <code>[[Go Package ioutil#Overview|ioutil.ReadFile]]</code> and <code>[[Go Package ioutil#Overview|ioutil.WriteFile]]</code> are deprecated since Go 1.16. |
Revision as of 17:59, 25 August 2023
Internal
Overview
Basic file read and write, by reading or writing the entire file into and from memory, is also provided by the ioutil
package, but its ioutil.ReadFile
and ioutil.WriteFile
are deprecated since Go 1.16.