Skip to content
Advertisement

Tag: fileoutputstream

While loop doesn’t exit after file download

I’ve got the following code to download a file being transmitted over TCP: upload code: The upload exits its loop fine. Once all the bytes have been processed (they are always processed successfully, however the loop is never exited), the file is created, without a single issue, but, the loop doesn’t exit. Answer TCP/IP connections are designed to be long-lived

Java fileOutputStream

I have been looking around but could not find what I need. I am writing a simple code to save some strings into a .txt file. I am using: When I do this the .txt is succesfully created and save the info I need to save, BUT it save all in 1 single huge line. How I can save it

Advertisement