Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-01-2009, 01:32 PM   #1
Registered: May 2007
Distribution: slackware
Posts: 34

Rep: Reputation: 15
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)
Old 03-01-2009, 02:00 PM   #2
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 178Reputation: 178
There is no standard C or C++ function for this. Writing your own function should be a minimally interesting experience.
Old 03-01-2009, 03:37 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
In other words - this sounds like a homework assignment ;-)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect length of line in file craigjward Programming 9 12-11-2007 11:13 PM
BASH length of file baks Programming 14 03-13-2007 09:52 PM
Zero-length bash .history file! revmyo Linux - Security 1 12-03-2005 08:09 PM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
csv to fixed-length file roballen Programming 0 03-11-2004 03:12 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration