Jump To Content

How to create file of reqd size

Yes it's possible to create a file of required size without writing a single word in it.

Does that sound interesting?

Let's do this.

First of go the start-->run-->cmd

Now go to the C prompt.

Let's us suppose I want of create a file of 967 Kb

Type the following as it is 

c:\>  debug bigfile.dat                \\ it will give u a error message o file not found. do not worry about that.

- rcx
  cx 0000
: 4240
- rbx
  ex 0000
: 000F      //         it is zero
- w
   writing file f4240 bytes
- q

c:\> this wil creat the file of required size.

// now I will ask few question to u

First what is 4240 stand for.

and why I have add 000F .

and I will soon reply u in the form of a lesson
chandra_avinash
  • Authority 527
Post Body
chandra_avinash said:

this is interesting – however, a bit unreadable for those who are not “into” computers

i would suggest that you structure it a little differently and it would be great if you have screenshots

cheers!

avinash

  • Quote
  • Posted 4 months ago.
mittal08
  • Authority 207
Post Body
mittal08 said:

I agree with you

  • Quote
  • Posted 3 months ago.
hardeep_3
  • Authority 20
Post Body
hardeep_3 said:

sir this is really a fantastic work….and it really works, first of all thanks for such a rare thing…..by using this coding i created a file, as u wrote, is of 976 kb. now thing i wanna ask, what will be the change in coding if i want to create a file of any desired size.let us say file of size 1000 kb…...

regards hardeep.

  • Quote
  • Posted 2 months ago.
  • Your comment will be modifiable for 10 minutes after posted.

Page Author

Avatar
handa
Name
handa

From Here You Can…

Information

Most Recent Related Content

This work is public domain.