LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   file creation with specified length (http://www.linuxquestions.org/questions/programming-9/file-creation-with-specified-length-708413/)

linuxsavar 03-01-2009 02:32 PM

file creation with specified length
 
hi all
for creating a file with specified length i need a c or c++ function( i use gcc ofcourse )
time of file creation should be independent from file length(file don`t filled with null or zero etc for increasing it`s length)
thanks

wje_lq 03-01-2009 03:00 PM

There is no standard C or C++ function for this. Writing your own function should be a minimally interesting experience.

paulsm4 03-01-2009 04:37 PM

In other words - this sounds like a homework assignment ;-)


All times are GMT -5. The time now is 05:27 PM.