1
Technical Help: IN GAME bugs (after loading world) / Failed to load Game Board
« on: December 02, 2008, 02:35:13 pm »
something not finalized yet about the Game boards in akkaio tavern? or a bug keeping it from opening?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <stdio.h>
#include <windows.h>
int main(void)
{
FILE *streamOut;
FILE *streamIn;
streamOut = fopen("C:\\Users\\ben\\AppData\\Roaming\\PlaneShift\\logs\\Durwynlog.txt", "wt"); //where you want to save it to.
streamIn = fopen("C:\\Users\\ben\\AppData\\Roaming\\PlaneShift\\logs\\Durwyn_chat.txt", "rt");//source file.
char buffer[1024];
int bytesRead;
do
{
bytesRead = fread(buffer, 1, 1024, streamIn);
fwrite(buffer, 1, bytesRead, streamOut);
}
while(bytesRead==1024);
system("pause");
fclose(streamOut);
fclose(streamIn);
return 0;
}
what do you think of? thought i would share it