File Operations in Go: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
Basic file read and write, by reading or writing the entire file, is provided by the [[Go Package ioutil|<code>ioutil<code> package]]. An entire file is read in memory with <code>ioutil.ReadFile()</code> and the entire file content, stored in memory, can be written with <code>ioutil.WriteFile()</code>. For basic file operations with the <code>ioutil</code> package see: {{Internal|Go Package ioutil|x}} | Basic file read and write, by reading or writing the entire file into and from memory, is provided by the [[Go Package ioutil|<code>ioutil<code> package]]. An entire file is read in memory with <code>ioutil.ReadFile()</code> and the entire file content, stored in memory, can be written with <code>ioutil.WriteFile()</code>. For basic file operations with the <code>ioutil</code> package see: {{Internal|Go Package ioutil|x}} |
Revision as of 17:51, 25 August 2023
Internal
Overview
Basic file read and write, by reading or writing the entire file into and from memory, is provided by the ioutil
package
. An entire file is read in memory with
ioutil.ReadFile()
and the entire file content, stored in memory, can be written with ioutil.WriteFile()
. For basic file operations with the ioutil
package see: