Question #15068077

C open() text file path?

I am trying to open a text file using inFile.open("test.txt") without having to put specify the path? I put the text file into the project folder but it says it is unable to open the file. How do I do this? I am using Visual Studio

2017-05-02 04:42:20

TELL US , if you have any answer

Sponsored ads

There is NEVER a problem, ONLY a challange!

The helpinganswers.com is a free-to-use knowledgebase.
  The helpinganswers.com was started on: 02.07.2010.
  It's free to register. Once you are a registered user, you can ask questions, or answer them.
  (Unless registration you can just answer the questions anonymously)
  Only english!!! Questions and answers in other languages will be deleted!!

Cheers: the PixelFighters

  Contact: support@helpinganswers.com

C'mon... follow us!

Made by, history, ect.