Skip to content Skip to sidebar Skip to footer

How To Replicate C# .read(buffer, 0, Buffer.length) In Python

Yesterday I asked a similar question about the filestream method, What is the Python equivalent to FileStream in C#?, but I now realize I should have probably been asking about the

Solution 1:

It looks like bytesread = len(openfile.read(4000)) is the correct way to replicate bytesRead = remoteStream.Read(buffer, 0, buffer.Length);

Thanks DYZ

Post a Comment for "How To Replicate C# .read(buffer, 0, Buffer.length) In Python"