get tokens from file