Can Stream Cipher be Used to Encrypt & Decrypt a File (Eg: .txt .docx .exe .zip)? I was new to cryptography. And I know that in the world of cryptography there are two types of Symmetric Algorithms:

Stream Cipher (RC4, Salsa &amp; Chacha)
Block Cipher (DES, AES)

And when doing some research on their implementation, I only looked at file encryption &amp; decryption software products that use the AES algorithm (Block Cipher in general). (i know that AES is secure)
Can anyone help me answer the question whether Stream Cipher can be used to encrypt files like: .txt .docx .exe .zip?
I know this is a stupid question. Please forgive me.
Yes, for sure.
Commonly block ciphers are used for disk encryption algorithms because disks (or partitions) have a particular size. So there is no place to store an IV or authentication tag. They are also optimized for local changes to occur w.r.t. confidentiality and locality of the change. Finally they have to operate for a specific sector size. A stream cipher would be less useful here.
However, the size files can generally be changed in both length and content pretty easily. This application level encryption has much more freedom, so any cipher can basically be used. You should however remember that stream ciphers often use XOR, which means that you may loose confidentiality if multiple versions of the same file are available to an attacker and the IV wasn't changed. In other words, you'd have to fully re-encrypt the file each time a change needs to be stored.