If calculate.exe
normally gets its input from standard input, you need to pipe the variable to it, not use an argument.
#!/bin/bash
while IFS= read -r LINE
do
printf "%s
" "$line" | ./calculate.exe
done < data.txt > f.txt
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…