摘要:
废话不多说了,确实要写得很正确才行,不然就会弄成overwrite的效果了,我用的是ofstream来实现的,主要要注意的就是要在模式里面指定好in和out和binary:string random_access_file = "I:/test_random.txt"; ofstream random_write_file(random_access_file.c_str(), ios::in | ios::out | ios::binary); long cur_point = random_write_file.tellp(); random_write_file.s. 阅读全文
posted @ 2014-03-21 14:08
Allen_Tung
阅读(1095)
评论(0)
推荐(0)

浙公网安备 33010602011771号