Dipak - 9 months ago 99
C++ Question

I am working on a program, which uses multiple

std::ifstream
s for reading a binary file, one
std::ifstream
for each thread. Now I need to know, if
std::ofstream
is thread-safe on Windows and Linux for writing in a same file. I am using using only one
std::ofstream

I am reading different blocks using using each thread and writing those block in output file using
seekp()
and
write()
. Currently it is working for me but whether it is problematic for big files.

Is
std::ofstream