Ignore:
Timestamp:
10/01/21 22:38:58 (2 months ago)
Author:
Maciej Komosinski
Message:

Added debugging messages and a non-VirtFILE implementation of readUntilEOL()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/util-file.h

    r1124 r1153  
    77
    88#include "nonstd_stl.h"
     9#ifdef USE_VIRTFILE
    910#include "virtfile/virtfile.h"
     11#else
     12#include <stdio.h>
     13#endif
    1014
    1115bool readCompleteFile(const char* filename, vector<char>& data, bool warn_on_missing_file = true);
     
    1317bool writeCompleteFile(const char* filename, const std::string& text, bool warn_on_fail = true);
    1418bool writeCompleteFile(const char* filename, vector<char>& data, bool warn_on_fail = true);
     19#ifdef USE_VIRTFILE
    1520string readUntilEOL(VirtFILE *f);
     21#else
     22string readUntilEOL(FILE *f);
     23#endif
    1624
    1725#endif
Note: See TracChangeset for help on using the changeset viewer.