Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Fortran

Idiom #127 Source code inclusion

Import the source code for the function foo body from a file "foobody.txt".

function foo()
include "foobody.txt"
end function foo
void foo()
{
#include "foobody.txt"
}

Same as C++

New implementation...
< >
MLKo