I have a method which receives a file over a TCP socket using this code:
FileOutputStream fileStream = new FileOutputStream(filename.getName());
while (total
I saw the same with using filestream. What I found there was if you open the file as readwrite, it cached everything and didn't write until you close or dispose. Flush didn't write. However if your writes extend the size of the file it would autoflush.
Opening as just write autoflushed on each write.