Inserting character in every line

help me,

is there any script i can use to insert a single character in every line of the whole file?

For example if you want the character at the beginning of each line:

sed 's/^/character/g' file1 > file2

or if you want to substitue a specific character replace ^ with that character.