Are you referencing the New File button in OnlineGDB? If so, it allows you to create new files from a range of file types.
You could create new header files that store user-defined functions for C/C++ code. Alternatively, you could create a text file which you read and write too etc.