Computing.Net > Forums > Programming > Create empty file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Create empty file

Reply to Message Icon

Name: qwerty12341
Date: August 24, 2005 at 10:36:38 Pacific
OS: XP Pro
CPU/Ram: 1.4G 512MB
Comment:

how can i create an empty file with a specified size that takes up no space yet when i go to properties it will say a certain amount of gigs which i will pick
thanx!



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: August 24, 2005 at 12:48:07 Pacific
Reply:

If you allocate a file of certain siza it will display the size even though you did not write anyting to it. However you cannot create the file without it taking space. If that was allowed how would the OS manage the file system. If an application opened your file and wrote to it what would happen. You could try playing tricks with the directory entry and the FAT. Any real file operations would probably create errors.


0

Response Number 2
Name: qwerty12341
Date: August 24, 2005 at 15:05:53 Pacific
Reply:

no i mean like in this picture
at this link http://schee.bloguje.cz//Snap3.jpg


0

Response Number 3
Name: wizard-fred
Date: August 25, 2005 at 02:49:53 Pacific
Reply:

I don't think that those values are valid.

I would refer you to this article on the allocation of large drive space.
http://www.pcguide.com/ref/hdd/file/partFAT32-c.html.


Your example does not show an empty file, but a directory entry using 4k per entry.


0

Response Number 4
Name: qwerty12341
Date: August 25, 2005 at 07:59:08 Pacific
Reply:

i just need a file like that
although it takes up almost no space on disk it thinks that it is supposed to be that size
i got that pic when i was looking for that kind of thing and it sent me to this file-sharing site "dcmagnet" and it says that these things are used by people who want to fool their dc++ to thinking that they are sharing more than they are (they call them garbage files) so they are allowed to enter hubs that demand alot of sharing for entry
anyway, so although the values are off, that thing does exist so can anyone help me do it
thanks!!!


0

Response Number 5
Name: wizard-fred
Date: August 25, 2005 at 22:31:34 Pacific
Reply:

You are a little late in trying to fool the other members of this p2p group. While some of you try to pretend to have files available to share, others have figured out how to detect the bogus sites and have started getting them banned/blocked. You are going to have to be a lot better at returning fake file and directory information, maybe dynamically generating them on request. Read the site I referred you to.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

PERL help? Goofy problem with gcc



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Create empty file

Create log file www.computing.net/answers/programming/create-log-file-/15402.html

creating a file using a .bat file www.computing.net/answers/programming/creating-a-file-using-a-bat-file/11035.html

Help creating batch file... www.computing.net/answers/programming/help-creating-batch-file/15530.html