void ReadTexReferences(char *filename)
{
- ifstream istr(filename, ios::nocreate | ios::in);
+ if (!wxFileExists(filename))
+ return;
+
+ ifstream istr(filename, ios::in);
+
if (istr.bad()) return;
char label[100];
bool ReadBib(char *filename)
{
+ if (!wxFileExists(filename))
+ return FALSE;
+
char buf[300];
- ifstream istr(filename, ios::nocreate | ios::in);
+ ifstream istr(filename, ios::in);
if (istr.bad()) return FALSE;
BibLine = 1;
bool ReadCustomMacros(char *filename)
{
- ifstream istr(filename, ios::nocreate | ios::in);
+ if (!wxFileExists(filename))
+ return FALSE;
+
+ ifstream istr(filename, ios::in);
+
if (istr.bad()) return FALSE;
CustomMacroList.Clear();