Your blocks work, if
- a notification is received while your app is up and running and
- the text file is owned by your app
From the documentation App Inventor Extensions: Notification Listener | Pura Vida Apps
Event indicating that a notification has been received.
If your app is up and running, new notifications can be received via this event.
If you want to have it working in the background, you additionally need itoo...
See again Notification Listener (powered by itoox-wrapper) and Itoo
Taifun