Files
A File in V is an abstraction of any file object accessible by the program and is closely associated with os
library.
Reading Files
Reading a file is an important task to tackle several different problems in computer science. In order to accomplish this task you can use the V native library os
as described below:
Writing files
Writing files in V is similar to read files.
Exercises
Write a V program to create a new file with content.
Write a V program to read 2 different files and display their content.
Read how the
os
library works in V and understand how you could use it.Encode a nested json string and write a new file with the result.
Last updated