I want to know the syntax to create a file of specific size...
I want to know the syntax to create a file of specific size...
fopen(), fwrite(), fclose() in that order.
BTW this isn't really a place to request code.
this is my first post and I did'nt know the forum rules.
> this is my first post and I did'nt know the forum rules.
So you missed all the posts at the top of each forum with titles like
Forum Guidelines. Read before posting
Click it NOW!
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.