Add several IO function

The IO functions has been added to several palces.