Task: The client sends a request to the server containing the path of the file being searched for and the size of the block into which the file should be split. The server searches for the file and forwards the file written by the client block by block (in the absence of the required file an error message is displayed).

How to transfer a file block by block?

    1 answer 1

    открыть файл пока не конец файла { прочитать нужный блок отправить блок } закрыть файл