1.2.1
CCC
 
File.cpp File Reference
#include "Basic/File.hpp"
#include "Basic/AStringable.hpp"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>

Functions

void skipBOM (std::ifstream &in)
 
FILE * gslFopen (const char *path, const char *mode)
 
FILE * gslFopen (const String &path, const String &mode)
 
bool gslFileExist (const char *path, const char *mode)
 
bool gslFileExist (const String &path, const String &mode)
 
String gslBaseName (const String &path, bool keepExtension)
 
String gslGetEnv (const String &name)
 
std::istream & gslSafeGetline (std::istream &is, String &t)
 

Function Documentation

String gslBaseName ( const String path,
bool  keepExtension 
)
bool gslFileExist ( const char *  path,
const char *  mode 
)
bool gslFileExist ( const String path,
const String mode 
)
FILE* gslFopen ( const char *  path,
const char *  mode 
)
FILE* gslFopen ( const String path,
const String mode 
)
String gslGetEnv ( const String name)
std::istream& gslSafeGetline ( std::istream &  is,
String t 
)

Get line from an input text stream whatever the end of line convention. Thanks to: https://stackoverflow.com/a/6089413

void skipBOM ( std::ifstream &  ins)

This file contains all the OLD-STYLE declarations causing warnings on Windows They should gradually be replaced by modern statements However, they are kept there to keep track on these statements