fileio.h 360 Bytes
Newer Older
gerstrong's avatar
gerstrong committed
1 2
#ifndef __FILEIO_H__
#define __FILEIO_H__
3 4 5

#include <string>
#include <cstdio>
gerstrong's avatar
gerstrong committed
6
#include <fstream>
7
#include <base/TypeDefinitions.h>
8 9 10

unsigned int fgeti(FILE *fp);
unsigned long fgetl(FILE *fp);
gerstrong's avatar
gerstrong committed
11
unsigned long fgetl(std::ifstream &file);
gerstrong's avatar
gerstrong committed
12
word fgetw(std::ifstream &file);
13 14 15 16
void fputi(unsigned int word, FILE *fp);
void fputl(unsigned long word, FILE *fp);

#endif