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

Hi, Please sugesst how to create a file in different folder?
  • Comment on How to Create a file in a different folder

Replies are listed 'Best First'.
Re: How to Create a file in a different folder
by moritz (Cardinal) on Sep 23, 2009 at 10:58 UTC
    By using a different path.

    Your question doesn't contain enough information to give any more specific advise - which part creates the log file? the database? the web server? or a different component?

    Please read How (Not) To Ask A Question.

    Perl 6 - links to (nearly) everything that is Perl 6.
      Furthermore, has the OP encountered problem(s) in the attempt ... which has/have also not been divulged ?

      Is it, as the example path tends to suggest, a Windoze machine and the OP is attempting to use *NIX slashes ?

      I submit that the OP would struggle to ask a question but tell us less about the problem...

      A user level that continues to overstate my experience :-))

      Hi,
      I just need to create a file in a different folder. Shall i use a different path in the file creation itself?
        Then use the full path to the desired log file in place of the current file name.
        Perl 6 - links to (nearly) everything that is Perl 6.