Fixed to use tabs not spaces.
This commit is contained in:
parent
7224dd8010
commit
6f83f458ca
8
main.cpp
8
main.cpp
@ -10,11 +10,11 @@ const int MAX_FILE_SIZE = 65536;
|
|||||||
|
|
||||||
string32 readfile(const char* name) {
|
string32 readfile(const char* name) {
|
||||||
std::fstream file_stream;
|
std::fstream file_stream;
|
||||||
file_stream.open(name);
|
file_stream.open(name);
|
||||||
|
|
||||||
char* data = new char [MAX_FILE_SIZE];
|
char* data = new char [MAX_FILE_SIZE];
|
||||||
int count(0);
|
int count(0);
|
||||||
while (file_stream)
|
while (file_stream)
|
||||||
data[count++] = file_stream.get();
|
data[count++] = file_stream.get();
|
||||||
file_stream.close();
|
file_stream.close();
|
||||||
data[--count] = 0;
|
data[--count] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user