What is a Writ Petition? How do you file one in Court?

What is a Writ Petition? How do you file one in Court? A Writ Petition…