Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / FormatFileSize Method
The number of bytes in the file
In This Topic
    FormatFileSize Method
    In This Topic
    Gets a human readble number from the file size
    Syntax
    public static string FormatFileSize( 
       long fileSize
    )

    Parameters

    fileSize
    The number of bytes in the file

    Return Value

    The file size expressed in bytes, kb, or mb.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also