is it possible to create a dynamic website without a database?(Only use a File to save Data)
It depends on how complex your web is.

I assume your web is contact mangager (create,update,delete) for 1 user only, you can storage records in a csv file on web server, it's not too difficult.

But if your contact manager serve many users, you have to implement concurrency, transaction for you text file. Its not easy.