Computer Chess Club Archives


Search

Terms

Messages

Subject: Problem with file i/o

Author: James Robertson

Date: 12:11:01 05/08/99


I have several questions about files in MSVC: how do I delete files? Also, is
there a convenient way to tell a file's size with ifstream/ofstream? I have been
doing this:

ifstream in;
in.open(file_path);
in.seekg(0, ios::end);
int size = in.tellg();

But, this seems really nasty. Is there a better way?

James



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.