sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on How can i dynamically open a text file from a folder???

Replies are listed 'Best First'.
Re: How can i dynamically open a text file from a folder???
by shmem (Chancellor) on Aug 31, 2006 at 09:38 UTC
    Easiest way is, have someone do it for you ;-)

    Is the program you're running a perl program?
    Could you post some code, and tell us what you've tried?
    What do you mean by "open dynamically"?
    Do you want to see the result during the program run?
    Or after?

    Please see How do I post a question effectively?.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re: How can i dynamically open a text file from a folder???
by marto (Cardinal) on Aug 31, 2006 at 09:35 UTC
Re: How can i dynamically open a text file from a folder???
by GrandFather (Saint) on Aug 31, 2006 at 09:18 UTC

    What OS? What tool do you want to open it with?

    You could use Tk to show the contents of the file.


    DWIM is Perl's answer to Gödel
Re: How can i dynamically open a text file from a folder???
by mantra2006 (Hermit) on Aug 31, 2006 at 15:46 UTC
    Hello
    The way you posted the question is vague...I am sure you must have put
    some effort and since you have posted question here I assume you are doing it in perl..
    Here is small code which does the file opening part
    open(FILE, ">>" . $filetocreate) || die "Cannot Create File";
    If you need more specific help please post your question with
    proper description and error messages you are getting
    I am sure all monks glad to help you

    Cheers!!!
    Thanks & Regards
    Sridhar
Re: How can i dynamically open a text file from a folder???
by cdarke (Prior) on Aug 31, 2006 at 16:24 UTC
    As others have said, your question is difficult to understand.
    Win32::ChangeNotify might help for detecting if a file has been created/changed. The linux equivalent is Linux::Inotify,. You could have one of these running as a service/daemon.
    To get the command to open and view a file use Win32::FetchCommand, I do not know a Linux equivalent.
    All are on CPAN. If you are using a GUI on Linux then the issue is which viewers you have availible.