Update dart:io article code samples to match changed article.