#include <iostream.h>
#include <fstream.h>
#include <windows.h>
#include <time.h>
#include <stdlib.h>
#include <h:\bits.h>
#include <h:\game.h>

struct file
{
	char text[1000][150];
};


void textout(struct file, int);
struct file textin(char []);

main()
{

	screensize();
//	box(0, 0, 79, 49, 12, 0, 2); 
	
	struct file bit = textin("a:\help.txt");
	textout(bit, 0);
	



return 0;
}

void textout(struct file help, int line)
{
	for(int y=0;y<49;y++)
	{
		for(int x=0;x<79;x++) 
		{
			if(help.text[y+line][x]!=0&&help.text[y+line][x]!=' ')
				put(help.text[y+line][x], x, y, 12);
			else
				put(' ', x, y, 12);
		}
	}


}

struct file textin(char filename[])
{
	struct file help;
	bool eof=false;
	int count=0;
	char bit[100];

	ifstream filein (filename, ios::in);
	do
	{
		filein.getline(help.text[count], 150);
		count++;
	}while(help.text[count-1][0]!=0);

	filein.close();
	return help;
}
