Size of RTF files

O

oo

How do i make RTF files open in word pad to individual sizes instead all
having the same size?

Tom
 
V

VanguardLH

oo said:
How do i make RTF files open in word pad to individual sizes instead all
having the same size?

You query doesn't make sense. You really want WordPad to open files
that are only some specific size (in bytes)? Why? The size of the file
will be determine by how much content it holds; however, file allocation
is by clusters so the minimum file size will be 1 cluster. So when you
create a file, and unless its content matches exactly on 1 cluster for
size, there will ALWAYS be slack space at the end of your file.

http://en.wikipedia.org/wiki/Data_cluster
http://en.wikipedia.org/wiki/File_system#Space_management
http://tweaks.com/windows/37042/ntfs-cluster-size/
http://support.microsoft.com/kb/140365

In Windows Explorer when right-clicking on a file and looking at its
Properties, you'll see 2 values for size: one (Size) for how many bytes
are consumed by the content itself within the file and another (Size on
disk) which is larger for how many bytes are consumed on the storage
medium for that file due to slack space.

If you create files that are all under a cluster in content size then
they will all consume the same amount of space on the storage medium.
Not until the content size surpasses the size of a cluster will the file
occupy more than 1 cluster. It will then occupy 2 clusters even if the
file only needed 1 more byte than 1 cluster.

One way to see what is the cluster size of the storage medium is to run
'chkdsk <drive>:' in a command shell (with elevated privileges, so run
cmd.exe as admin). If, for example, 'chkdsk' says there is 4096 bytes
per allocation unit then your cluster size is 4096 bytes. You can also
use 'diskpart' to find the allocation unit size except that a mistake
with this program could screw up your partitions. If you used NTFS as
the file system then another way to get the cluster size is to run
'fsutil fsinfo ntfsinfo <drive>:' in the command shell. Look at the
"Bytes per cluster" value.

File systems use granular assignment to track file storage.

That is not a valid signature delimiter line.
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Configure your choice of anti-virus software to NOT spamify your posts
with their promo pseudo-signature.
 
M

Mayayana

| How do i make RTF files open in word pad to individual sizes instead all
| having the same size?

Do you mean that you want Wordpad to remember the
window size when you close a specific file, and then use
that size again next time you open it? That would require
saving the information in the RTF file. RTF is a fairly simple
formatting code. I don't know of any settings storage
options in that format.
 
O

oo

VanguardLH said:
You query doesn't make sense. You really want WordPad to open files
that are only some specific size (in bytes)? Why? The size of the file
will be determine by how much content it holds; however, file allocation
is by clusters so the minimum file size will be 1 cluster. So when you
create a file, and unless its content matches exactly on 1 cluster for
size, there will ALWAYS be slack space at the end of your file.

http://en.wikipedia.org/wiki/Data_cluster
http://en.wikipedia.org/wiki/File_system#Space_management
http://tweaks.com/windows/37042/ntfs-cluster-size/
http://support.microsoft.com/kb/140365

In Windows Explorer when right-clicking on a file and looking at its
Properties, you'll see 2 values for size: one (Size) for how many bytes
are consumed by the content itself within the file and another (Size on
disk) which is larger for how many bytes are consumed on the storage
medium for that file due to slack space.

If you create files that are all under a cluster in content size then
they will all consume the same amount of space on the storage medium.
Not until the content size surpasses the size of a cluster will the file
occupy more than 1 cluster. It will then occupy 2 clusters even if the
file only needed 1 more byte than 1 cluster.

One way to see what is the cluster size of the storage medium is to run
'chkdsk <drive>:' in a command shell (with elevated privileges, so run
cmd.exe as admin). If, for example, 'chkdsk' says there is 4096 bytes
per allocation unit then your cluster size is 4096 bytes. You can also
use 'diskpart' to find the allocation unit size except that a mistake
with this program could screw up your partitions. If you used NTFS as
the file system then another way to get the cluster size is to run
'fsutil fsinfo ntfsinfo <drive>:' in the command shell. Look at the
"Bytes per cluster" value.

File systems use granular assignment to track file storage.


That is not a valid signature delimiter line.


Configure your choice of anti-virus software to NOT spamify your posts
with their promo pseudo-signature.

Sorry
My question was badly worded, i meant document not file.
Mayayana has answered it.
 
O

oo

Mayayana said:
| How do i make RTF files open in word pad to individual sizes instead all
| having the same size?

Do you mean that you want Wordpad to remember the
window size when you close a specific file, and then use
that size again next time you open it? That would require
saving the information in the RTF file. RTF is a fairly simple
formatting code. I don't know of any settings storage
options in that format.

Yes this is what i meant to ask.
Thank you for your reply.
 
J

J. P. Gilliver (John)

That was what I thought he meant, until for some reason reading your
reply made me wonder if he meant the zoom setting ...
[]
Sorry
My question was badly worded, i meant document not file.
Mayayana has answered it.
.... but I looked at Mayayana's reply (and oo's response), and it wasn't
that: he meant window size. I don't _think_ Mayayana _answered_ it, only
understood it.In my experience, windows either always reopen the same size they were
the last time that _application_ (in this case WordPad) was opened, or
always open at the same size regardless for a given application; I don't
know a way to embed the window size _in a particular file_. (_Some_
applications - irritatingly to me, as I rarely work that way - always
open maximised; _most_, and I don't know if this includes Wordpad, at
least remember whether they were maximised or not. At least the
keystrokes to fix that - Alt-space then enter or alt-space then x - are
easy to remember, at least for me.)
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

# 10^-12 boos = 1 picoboo # 2*10^3 mockingbirds = 2 kilo mockingbird
# 10^21 piccolos = 1 gigolo # 10^12 microphones = 1 megaphone
# 10**9 questions = 1 gigawhat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top