Which language? Mind if I talk bash?
Code:
#!/bin/sh
if [ ! $# -eq 2 ]; then
echo "Syntax: $0 input_file output_file"
exit 1
fi
if [ -f "$1" ]; then
input_file="$1"
else
echo "Input file \"$1\" does not exist."
exit 2
fi
output_file="$2"
while read i
do
echo "$i $i"
done <$input_file >$output_file
Save this in a script named to your likings, eg. insert-space.sh
then type
insert-space.sh ./input_text_file.txt ./output_text_file.txt
PS: of course, this will give confusing output, if a line in the input file countains spaces...