Windows-8.1

Processed File Size from Bytes in C#

Here’s a small function that processes the input file size in bytes to KB, MB, GB. It may be useful if you wish to display well formatted file size instead of showing it in bytes which the users will find difficult to interpret.

Vivek Maskara

I am pursuing BTech in Software Engineering from Delhi Technological University. I develop apps, create websites and blog about my app experiences.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding
Close