April 24th, 2022, 03:37 AM
It should throw error when byte is not read. (Edited)
April 24th, 2022, 12:28 AM
I have following file called helper.h, which I want to call in server and client files later.
#ifndef HELPER_H
#include <iostream>
#include <fstream>
#include <string>
April 14th, 2022, 05:34 AM
Once size_t& bytes has been passed as parameter in function, we just call it with the name later instead of defining it again as
size_t bytes_read. My finding.
Thanks.
April 14th, 2022, 01:42 AM
Is the bytes in writeFileContent
size_t bytes {}; accessing the getFileContent()'s bytes ? For me it shows 0 bytes read
April 13th, 2022, 07:48 AM
If I have size of vector as
size_t bytes_read = sizeof(vecOfStrs[0]) * vecOfStrs.size(); in the getFileContent(), how do i call it in the writeFileContent and make comparison if they are equal. ...
April 13th, 2022, 04:58 AM
Use for client server communication
April 12th, 2022, 11:25 PM
I want to modify the code as different functions. Any suggestions what improvements to make:
std::string getFileContent(const std::string & infileName)//Should it return vecOfStrs, change it...
April 9th, 2022, 03:45 PM
I am trying to read a file into buffer as vector, and write it to another file. It reads the content, but doesn't seem to write. What is the mistake and how to correct ?
#include <iostream>...
April 5th, 2022, 04:37 AM
Why is there curly braces after the token_number ?
April 5th, 2022, 03:10 AM
Hi, I am a first semester student, learning the OOPs basics. I need help for a program:
class Message{
public:
void input();
int output();
private:
long token_number;// next token to be...