SGVector has a function load(file). This may be what you need.