Support Forum       G3D Web Page     
Namespaces | Functions
fileutils.h File Reference

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...

Namespaces

 G3D
 

Functions

FILE * G3D::createTempFile ()
 Returns a temporary file that is open for read/write access. More...
 
String G3D::filenameBase (const String &filename)
 Returns the portion of a filename to the left of the last period and to the right of the last slash or colon. More...
 
String G3D::filenameBaseExt (const String &filename)
 
Returns the part of the filename that includes the base and ext from parseFilename (i.e. More...
 
bool G3D::filenameContainsWildcards (const String &filename)
 Returns true if '*' or '?' appears in the string. More...
 
String G3D::filenameExt (const String &filename)
 
Returns the extension on a filename. More...
 
String G3D::filenamePath (const String &filename)
 
Returns the drive (if Win32) and path from a filename, including a slash if there was one. More...
 
String G3D::generateFilenameBase (const String &prefix="", const String &suffix="")
 Creates a unique filename base in the current directory using the specified prefix and suffix. More...
 
String G3D::generateFileNameBaseAnySuffix (const String &prefix)
 Creates a unique filename base in the current directory using the specified prefix, though any suffix is possible. More...
 
void G3D::parseFilename (const String &filename, String &drive, Array< String > &path, String &base, String &ext)
 Parses a filename into four useful pieces. More...
 
String G3D::pathConcat (const String &dirname, const String &file)
 Appends file onto dirname, ensuring a / if needed. More...
 
String G3D::readWholeFile (const String &filename)
 Returns the contents of a text file as a single string. More...
 
void G3D::writeWholeFile (const String &filename, const String &str, bool flush=true)
 
More...
 
bool G3D::zipfileExists (const String &filename, String &outZipfile, String &outInternalFile)
 
Returns true if the given file (or directory) exists within a zipfile. More...
 
bool G3D::zipfileExists (const String &filename)
 

Detailed Description

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.


documentation generated on Wed Nov 24 2021 08:01:51 using doxygen 1.8.15