I created two version of my program using a buffered reader.. my first version I made using notepad and the second version using Netbeans IDE...
my code "new BufferedReader(new FileReader("data/list.txt")" works on my notepad version though FileException error on my Netbeans IDE although it works if i use absolute path like "(c:/data/list.txt)"... in java, how do i use relative paths?
it2051229 -3 Junior Poster in Training
masijade 1,351 Industrious Poster Team Colleague Featured 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.