|  | 
|  | File (const char *ファイル名, FileMode 読み書きモード, bool バイナリファイル=false, SaveMode Androidの保存先=SaveMode::Asset) | 
|  | ファイル名とモードを指定して、ファイルを開く.  More... 
 | 
|  | 
| bool | Open (const char *ファイル名, FileMode 読み書きモード, bool バイナリファイル=false, SaveMode Androidの保存先=SaveMode::Asset) | 
|  | ファイル名とモードを指定して、ファイルを開く.  More... 
 | 
|  | 
| void | Close () | 
|  | ファイルを閉じる.  More... 
 | 
|  | 
| FileMode | GetFileMode () | 
|  | ファイルモードを取得.  More... 
 | 
|  | 
| const char * | GetFileName () | 
|  | ファイル名を取得.  More... 
 | 
|  | 
| template<class T > | 
| bool | Read (T &読み込み先変数) | 
|  | データを読み込む.  More... 
 | 
|  | 
| template<class T > | 
| bool | Read (std::vector< T > &読み込み元配列) | 
|  | 可変長配列を読み込む.  More... 
 | 
|  | 
| bool | Read (std::string &読み込み先変数) | 
|  | 文字列を読み込む.  More... 
 | 
|  | 
| template<class T > | 
| bool | Read (T *読み込み先配列, int 要素数) | 
|  | データを読み込む.  More... 
 | 
|  | 
| template<class TSaveType , class TOutput > | 
| bool | Read (TOutput *読み込み先配列, int 要素数, int 分母) | 
|  | 型変換をしつつ配列に読み込む.  More... 
 | 
|  | 
| template<class TSaveType , class TOutput > | 
| bool | Read (TOutput &読み込み先変数) | 
|  | 型変換をしつつ読み込む.  More... 
 | 
|  | 
| template<class T > | 
| bool | Write (T &書込み元変数) | 
|  | データを書き込む.  More... 
 | 
|  | 
| bool | Write (const std::string &書込み元変数, bool is文字数=true) | 
|  | 文字列を書き込む.  More... 
 | 
|  | 
| bool | Write (std::string &書込み元変数, bool is文字数=true) | 
|  | 
| template<class T > | 
| bool | Write (std::vector< T > &書込み元配列) | 
|  | 可変長配列を読み込む.  More... 
 | 
|  | 
| template<class TSaveType , class TInput > | 
| bool | Write (TInput *書き込み元配列, int 要素数) | 
|  | 型変換をして書き込む.  More... 
 | 
|  | 
| template<class T > | 
| bool | ReadWrite (T &読み書き変数) | 
|  | 変数を読み書きする.  More... 
 | 
|  | 
| template<class T > | 
| bool | ReadWrite (T *読み書き変数, int 要素数) | 
|  | 配列に読み書きする.  More... 
 | 
|  | 
| bool | AddLine (VariadicStream 文字列) | 
|  | 改行付きの文字列を一行書き込む.  More... 
 | 
|  | 
| std::vector< std::string > | GetLineS () | 
|  | ファイルを改行区切りで一括して読み込む.  More... 
 | 
|  | 
| std::vector< std::string > | GetCsvToString () | 
|  | カンマ区切りのCSVファイルを配列に文字列として一括読込.  More... 
 | 
|  | 
| std::vector< std::vector < std::string > >
 | GetCsvToString2 () | 
|  | カンマ区切りのCSVファイルを二次元配列に文字列として一括読込.  More... 
 | 
|  | 
| std::vector< int > | GetCsvToInt () | 
|  | カンマ区切りのCSVファイルを配列に整数として一括読込.  More... 
 | 
|  | 
| std::vector< std::vector< int > > | GetCsvToInt2 () | 
|  | カンマ区切りのCSVファイルを二次元配列に整数として一括読込.  More... 
 | 
|  | 
| bool | CheckEOF () | 
|  | ファイルの終端判定.  More... 
 | 
|  | 
入出力可能なテキストかバイナリファイルを表すクラス. 
- Todo:
- 配列の保存と読み込みの仕様が分かりにくい? 
bool SampleFile()
{
    using namespace SDX;
    int a = 100;
    double b = 1.23;
    char c = 123;
    std::string str = "こんにちは";
    fileA.Write(a);
    fileA.Write(b);
    fileA.Write(c);
    fileA.Write(str);
    fileA.Close();
    int a2;
    double b2;
    char c2;
    std::string str2;
    fileB.Read(a2);
    fileB.Read(b2);
    fileB.Read(c2);
    fileB.Read(str2);
    fileB.Close();
    fileC.Write("1,2,3,4,5");
    fileC.Close();
    std::vector<int> intS = fileD.GetCsvToInt();
    fileD.Close();
    fileE.Write("1,こんにちは,3,さようなら,5");
    fileE.Close();
    std::vector<std::string> strS = fileF.GetCsvToString();
    fileF.Close();
    {
        Drawing::String({ 10, 10 }, 
Color::White, { 
"書き込みA:", a, 
" ", b, 
" ", c, 
" ", str });
 
        Drawing::String({ 10, 30 }, 
Color::White, { 
"読み込みB:", a2, 
" ", b2, 
" ", c2, 
" ", str2 });
 
    }
    return true;
}