1.3.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

◆ gslBaseName()

String gslBaseName ( const String path,
bool  keepExtension 
)

◆ gslFileExist() [1/2]

bool gslFileExist ( const char *  path,
const char *  mode 
)

◆ gslFileExist() [2/2]

bool gslFileExist ( const String path,
const String mode 
)

◆ gslFopen() [1/2]

FILE* gslFopen ( const char *  path,
const char *  mode 
)

◆ gslFopen() [2/2]

FILE* gslFopen ( const String path,
const String mode 
)

◆ gslGetEnv()

String gslGetEnv ( const String name)

◆ gslSafeGetline()

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

◆ skipBOM()

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