Being new to java am trying to understand the terminology and works around...
If i have a simple text file userdetails.txt which contains users name, password, home_dir_context (this is just for questioning).. Which function between the two do i use to get the path where this is located : c:/Java Projects/Users/Details/userdetails.txt? And how do i call this function. Could you also explain the difference by stating why should i use the one over the other? I understand that getResourceAsStream returns an instream while getResource returns URL (which am not sure whether a URL is a path including c:/ or what)?
Lastly, is it preferably to have my text file as userdetails.properties, if so why? Will stop here for now
Thanks in advance