VD
Size: a a a
VD
m
m
AB
AB
m
m
VD
std::ifstream in("in.txt");
std::ofstream out("out.txt");
std::array<char, N+2> temp;
while(in.good() && !in.eof()) {
in.getline(&temp[0], N * sizeof(char));
temp[N] = '\n';
temp[N+1] = '\0';
out.write(temp.data(), std::size(temp) * sizeof(char));
}
m
VD
AB
AB
m
AB
VD
AB
VD
VD
VD