load tgv ascii with a function