CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    France
    Posts
    329

    Include file without executing it

    Is there a way to include a file but not execute its content?
    Last edited by MasterDucky; January 19th, 2011 at 08:13 AM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Include file without executing it

    Quote Originally Posted by MasterDucky
    Is there a way to include a file but not execute its content?
    No...because that defeats the whole purpose of having an included file.

    You should never include code you don't want executed because it gives the interpreter more to handle therefore taking up more resources and time.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Dec 2007
    Location
    France
    Posts
    329

    Re: Include file without executing it

    Thanks Peej!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured