You need to read the content of that file with: my $content; { local $/; open(FILE, $file_path); $content = <FILE>; close FILE; }
Then insert the $content in the Win32::GUI control you want. Teddy ----- Original Message ----- From: "Mark Sutfin" <[EMAIL PROTECTED]> To: <perl-win32-gui-users@lists.sourceforge.net> Sent: Wednesday, August 03, 2005 23:02 PM Subject: [perl-win32-gui-users] Control for Displaying the contents of a text file? Hello, Newbie has just started experimenting with Win32::GUI. Great stuff. I see that GetOpenFileName() returns the file I selected from the dialog box. Which control(s) might easily display the contents of this text file? I was guessing textfield...? But did not see a method to assign the content to the control... TIA, Mark