I want to read a file which is in the same folder as my program. What is the notation to get the current folder? I tried '.' but it doesn't work.
roachic 0 Newbie Poster
Recommended Answers
Jump to Postgetcwd() will return the full path to the current folder. Or ".\\myfile.txt" or "./myfile.txt"
Jump to PostSo... That's what he asked for right? Or did I read it wrong?
All the above. Not sure exactly what he wanted
All 5 Replies
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
roachic 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.