This post shows how Golang can read a text file line by line using a buffered IO or bufio package. The content of a file may be in Chinese or English because Golang supports UTF-8 by default. Moreover, we do
Golang – Write Text to File Line by Line Using Buffered IO
Writing text to a file is a familiar use case that we may need to implement for our applications. Like most programming languages, Golang has facilities to enable us to implement such write text to files. This post briefly shows
Python 3 Write Text to File Example – Open And Close Files Too
This post shows how to write texts to a file in Python 3.
Java – Get a directory’s size
There’s a few ways to get a directory’s size.
Java – Check for file or directory
The class java.io.File can be used to check for files or directory.