something like this:
tree_id = client.tree_connect("\\\\hostname\\share")
client.read(tree_id, "file.txt")
# => "contents of file.txt"
needs to
- send a
CreateRequest with appropriate values
- read the response, store the
file_id therein
- send a
GetInfo request for that file_id
- read the response, store the size
- send a
ReadRequest for that many bytes
- return the value as a String
something like this:
needs to
CreateRequestwith appropriate valuesfile_idthereinGetInforequest for thatfile_idReadRequestfor that many bytes