Let's say I have a int largeInt = 9999999
and char buffer[100]
, how can I convert largeInt
into a string (I tried buffer = largeInt
, doesn't work) and then fwrite()
to a file stream myFile
?
Now what if I want to write "The large number is (value of largeInt
)." to myFile
?