C++ file Input , getting only zeros after the first number
In a file Tasks.txt, we have
23
bruh
moment
24
bruh
moment
gym
fwrite() writes previous printf() statements in .dat file opened if strings are not full
I write a struct to a .dat file using fwrite(). The struct contents: