parameter file for a shell script

Hi

I was able to pass parameters to a shell script from the command line but now, I am trying to make the shell script to get those parameters/values from a file.

Please give me ideas how to do this or if you have an example or website that shows how to do this.

I tried searches but it didnt help. Thx

You need to "source" the parameter file using "."

$ cat myparams
myvar=abc123

$ cat myscript
#!/usr/bin/bash
. ./myparams
echo myvar=[$myvar]

$ ./myscript
myvar=[abc123]

Thank you!