function fileIDFromString(file) {
    let fileSplit = file.split('.')
    let fileID = new FileID()

    if (
        isNaN(parseInt(fileSplit[0])) ||
        isNaN(parseInt(fileSplit[1])) ||
        isNaN(parseInt(fileSplit[2]))
    ) {
        throw new Error('AccountID contains invalid character(s)')
    }

    if (fileSplit.length !== 3) {
        throw new Error('AccountID is invalid')
    }
    fileID.setShardnum(parseInt(fileSplit[0]))
    fileID.setRealmnum(parseInt(fileSplit[1]))
    fileID.setFilenum(parseInt(fileSplit[2]))
    return fileID
}
/**
 * fileIDFromString converts a string type FileID into a Hedera FileID object.
 * @param {string} file is a string delimited by dot, of the format 'shardNum.realmNum.fileNum'.
 * @returns {Object} returns a Hedera FileID.
 */
fileIDFromString converts a string type FileID into a Hedera FileID object.
@param {string} file is a string delimited by dot, of the format 'shardNum.realmNum.fileNum'.
@returns {Object} returns a Hedera FileID.
fileIDFromString converts a string type FileID into a Hedera FileID object . @param { string } file is a string delimited by dot of the format ' shardNum . realmNum . fileNum ' . @returns { Object } returns a Hedera FileID .
function fileIDFromString(file) {
    let fileSplit = file.split('.')
    let fileID = new FileID()
    if (
        isNaN(parseInt(fileSplit[0])) ||
        isNaN(parseInt(fileSplit[1])) ||
        isNaN(parseInt(fileSplit[2]))
    ) {
        throw new Error('AccountID contains invalid character(s)')
    }
    if (fileSplit.length !== 3) {
        throw new Error('AccountID is invalid')
    }
    fileID.setShardnum(parseInt(fileSplit[0]))
    fileID.setRealmnum(parseInt(fileSplit[1]))
    fileID.setFilenum(parseInt(fileSplit[2]))
    return fileID
}
function fileIDFromString ( file ) { let fileSplit = file . split ( '.' ) let fileID = new FileID ( ) if ( isNaN ( parseInt ( fileSplit [ 0 ] ) ) || isNaN ( parseInt ( fileSplit [ 1 ] ) ) || isNaN ( parseInt ( fileSplit [ 2 ] ) ) ) { throw new Error ( 'AccountID contains invalid character(s)' ) } if ( fileSplit . length !== 3 ) { throw new Error ( 'AccountID is invalid' ) } fileID . setShardnum ( parseInt ( fileSplit [ 0 ] ) ) fileID . setRealmnum ( parseInt ( fileSplit [ 1 ] ) ) fileID . setFilenum ( parseInt ( fileSplit [ 2 ] ) ) return fileID }
fileIDFromString converts a string type FileID into a Hedera FileID object.
fileIDFromString converts a string type FileID into a Hedera FileID object .