What do you mean. Are you trying to see how big a file is? or are you wanting a variable unrelated to any file to see how big it is in Kb?
If you are wanting to see how big a variable is in Kb usually every letter e.g
"a" is 1 byte without the quotes in Notepad i assume its the same elsewhere. So use strlen if you dealing with text, numbers and than if its over e.g. 1024 its 1Kb in size.