Basic write for integer and string operational