What it sounds like you have is a SQL dump of yuor database!
It is pretty easy is to restore that. What you need to do is this:
from within your database client (the program you use to connect to the database) there should be an option to execute SQL. This should also give you the option to open the SQL file. If not then you should be able to open the file in a text editor and copy the text into the client program.
Then run it and you will have the database there comlete and full.
However, you dont mention your database or the client program you use to connect to it so I cannot give you anymore specifics.