Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

FileWriteString.h

Go to the documentation of this file.
00001 #ifndef Impala_Basis_FileWriteString_h
00002 #define Impala_Basis_FileWriteString_h
00003 
00004 #include "Basis/File.h"
00005 
00006 namespace Impala
00007 {
00008 
00009 
00010 template <class Iterator>
00011 bool
00012 FileWriteString(String fileName, Iterator begin, Iterator end)
00013 {
00014     Impala::File f(fileName, "w");
00015     if (! f.Valid())
00016         return false;
00017     for (Iterator it=begin ; it!=end ; it++)
00018     {
00019         String s = *it;
00020         fprintf(f.Fp(), "%s\n", s.c_str());
00021     }
00022     return true;
00023 }
00024 
00025 } // namespace Impala
00026 
00027 #endif

Generated on Fri Mar 19 09:30:42 2010 for ImpalaSrc by  doxygen 1.5.1