Logo

Programming-Idioms

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

Idiom #127 Source code inclusion

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

procedure foo;
begin
  {$I foobody.txt}
end;
void foo()
{
#include "foobody.txt"
}

Same as C++

New implementation...
< >
MLKo