You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: readBF.m
    path of file: ./repos/gptoolbox/mesh
    
    the code of the file until where you have to start completion: function [V,WI,P] = readBF(filename)
  % READBF Read a skeleton from the .bf bone forest format
  %
  % [V,WI,P] = readBF(filename)
  %
  % Read bone forest from a .bf file
  %
  % Input:
  %  filename  .bf file name
  % Output:
  %  V  # vertices by 3 list of vertex offsets from parents
  %  WI  # vertices list of indices of weights (0 means no weights)

    
function [V,WI,P] = readBF(filename)
  % READBF Read a skeleton from the .bf bone forest format
  %
  % [V,WI,P] = readBF(filename)
  %
  % Read bone forest from a .bf file
  %
  % Input:
  %  filename  .bf file name
  % Output:
  %  V  # vertices by 3 list of vertex offsets from parents
  %  WI  # vertices list of indices of weights (0 means no weights)
  %  P  # vertices list of indices of bone parents (0 means root)
  % 
  D = dlmread(filename);
  V = D(:,3:end