POV-Ray : Newsgroups : povray.programming : DF3 utility : Re: DF3 utility Server Time
8 May 2024 20:40:50 EDT (-0400)
  Re: DF3 utility  
From: nemesis
Date: 30 Jan 2008 19:27:13
Message: <47a115e1$1@news.povray.org>
Warp escreveu:
>     std::ifstream is("testdata.txt");
>     if(!is.good()) { std::cerr << "Couldn't open testdata.txt\n"; return 1; }

hehe, pretty cool idiom for testing a file... is.good() :)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.