hi. how can i insert a path in a list widget?

here's the scene..i will insert a path of a .txt file in the code then the listwidget will display its content..can someone help me?