get and set u8/u16/u32/u64 in file or stdin