Update dart:io articlt to the new API