like fputs() for string,is there anything for writing integers? further can a structure be used to write in txt file?