Does writing or texting constitute a Hefsek?


Many times in Halachah we see that talking is considered a Hefsek and we are required to remain silent and if we spoke we may be required to repeat or redo something.

Is writing or texting the same as speaking in this regard and considered a Hafsek or not?