Forums Register Login
convert vector to array of bytes
i had a program that could get almost any web address and save the file it returned, but it didnt work for php generated addresses. the reason was that my code depended on there being a contentLength attribute, and there is none generated for things like this (like a google search). so i used an if statement to test weather there was one, and if there wasnt, instead of using a buffered read, i tried to read the contents one byte at a time. i had to use a vector for this because again, the contentLength wasnt known. now im stuck with a vector and i dont know how to get it into the file.

i found a solution

chop ficaro wrote:

Please check your private messages for an important administrative matter

This thread has been viewed 2049 times.

All times above are in ranch (not your local) time.
The current ranch time is
Dec 10, 2018 13:17:50.