I was using a text editor in Chinese, when I tried to exit without saving the currently opened file it showed me this sentence:
您要在关闭文件前保存吗?
What is the role of 在 here? Is it related to the usage of (some event)前
? Or can be omitted without altering the sentence meaning?