Files on your computer cannot be accessed from OnlineGDB. You can add the file to your project via the UPLOAD FILE button left of the green RUN button. Then you can refer to the file with a relative path.
If this doesn't quite help, please, share your code.