how to include header file in b-sh script

I'm new in this.

In C/C++, you define variables in one header file & then simply include it in any files where those variables are referenced.

I tried to include a header named DefineVars- which initializes all the globals- but when I add the line "DefineGlobals" at the begining of another script- I can't seem to get any of the values defined.

My code is like this & it is not working:

header file - DefineVars:
#!bin/sh
a=1
b=2

main script:
#!bin/sh
DefineVars
echo $a
echo $b

Please help me. Thanks in advance!!

use "."

as in

#!/bin/sh
. DefineVars

beautiful!
thank you:-)