Without seeing your code, I'd assume that you're opening the file outside of the "Run" subroutine and just reading the data in that subroutine. If this is the case, what you want to do is open the file at the start of the subroutine, read the data, then close the file at the end of the subroutine. This way, it will be opened, read, and closed each time "Run" is clicked.
On 1/7/07, Guojun Yang <[EMAIL PROTECTED]> wrote:
Hi, All, I am trying to make a window with a "Run" botton. After click, it inports text from a file and, after manual manipulation of the text data in the textbox, it produces a graph using the text of the box. Then the graph will be displayed on the same window. It runs only on the first time I click "Run". When I click "Run" again after the first click, an error was returned basically saying the file reading pointer is at the end of the file, so no calculation is performed. Can anybody give me a hint on this? Thanks a lot, Guojun ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/
-- Geoffrey Spear http://www.geoffreyspear.com/