can you tell me what is that mean??
-
I'm making a huge assignment and a part of it want me to see the wasted space in a file a friend of me said to me to use system("cls"); what is the meaning of system("cls"); ???
no gain without pain
-
I'm making a huge assignment and a part of it want me to see the wasted space in a file a friend of me said to me to use system("cls"); what is the meaning of system("cls"); ???
no gain without pain
-
You can use of cls for clear page of course it was for DOS for example on the GWBasic you could use of clrcls (Im not sure excatly) what do you need excatly?
-
This is a call to the OS to clear screen. If you typed in cls at the command prompt, the OS would attempt to clear the screen. Not sure what 'wasted space in a file' is though.
jeron1 wrote:
Not sure what 'wasted space in a file' is though.
Also known as slack space.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I'm making a huge assignment and a part of it want me to see the wasted space in a file a friend of me said to me to use system("cls"); what is the meaning of system("cls"); ???
no gain without pain
Asmo'a wrote:
I'm making a huge assignment and a part of it want me to see the wasted space in a file
As I understand your question, you want to "see" the amount of slack space a file uses. For example, if you have a file that is 8,200 bytes in size, it will actually consume 12,288 bytes on disk. That extra 4,088 bytes is wasted, or slack, space. This, of course, assumes a 4KB allocation unit.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Asmo'a wrote:
I'm making a huge assignment and a part of it want me to see the wasted space in a file
As I understand your question, you want to "see" the amount of slack space a file uses. For example, if you have a file that is 8,200 bytes in size, it will actually consume 12,288 bytes on disk. That extra 4,088 bytes is wasted, or slack, space. This, of course, assumes a 4KB allocation unit.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
And why is that slack space there? Because in almost all the files I have seen, when seeing properties size and consumed place are different. Is it something standard? or can be avoided?
Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
-
And why is that slack space there? Because in almost all the files I have seen, when seeing properties size and consumed place are different. Is it something standard? or can be avoided?
Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Nelek wrote:
And why is that slack space there?
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Nelek wrote:
And why is that slack space there?
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Thanks for the link
Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson