ai pulsanti basta che metti:

on(press){
caricaTxt("nomefile.txt");
}