filestream

How to read a binary file correctly

I have a Book collection that contains a list of books. I create a binary file and write this data to it. There are no proble ... } } // Читаем файл using (BinaryReader reader = new BinaryReader(File.Open(_path + "\\Books.bin", FileMode.Open))) { }

Download the file from the direct link

In the android app, when you click on the button, the file should start downloading via a direct link to download the file( w ... 1000) + " sec"); } catch (IOException e) { Log.d("ImageManager", "Error: " + e); } }

What is the difference between the return value of available() and read (byte[] b)

input.available() // return 9 input.read(new byte[input.read()]) // return 8 Reading from the file with the FileInputStream ... the number of available bits in the same way as the second construct? The file contains the following text: Javatest1