def read_file(dbx, from_file):
    """Read file from Dropbox 
    Args:
        dbx (Dropbox object): Dropbox object generated from API token
        from_file (string): File location in Dropbox accounts
    Returns:
        int32: Percentage value
    """
    _, f = dbx.files_download(from_file)
    percentage = f.content
    percentage = percentage.decode('utf-8')
    return int(percentage)