pulled latest translations from Transifex
[TortoiseGit.git] / src / Utils / StdioFileT.h
blob969a30780eb1b41c418e760ea93e3d94d54ad2a2
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2006 - Stefan Kueng
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 /**
23 * \ingroup Utils
24 * CStdioFileT extends the standard CStdioFile MFC class to handle ANSI and
25 * UNICODE files equally, independent on how the program is compiled.
27 class CStdioFileT : public CStdioFile
29 public:
30 CStdioFileT();
31 CStdioFileT(LPCTSTR lpszFileName, UINT nOpenFlags);
33 BOOL ReadString(CStringA& rString);
34 BOOL ReadString(CString& rString) {return CStdioFile::ReadString(rString);}
36 void WriteString(LPCSTR lpsz);
37 void WriteString(LPCWSTR lpsz);