Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. If this abstract pathname does not denote a directory, then this method returns null.
Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
You said searchDir. Did you mean searchThis? The code creates a directory then creates a file in that directory. Then it asks for the parent directory of the file you just created, which is the directory you just created. Then it prints the file names in that directory, which I assume is the file you just created. True? Please elaborate on what you think should happen.I tried out the code, and it still reads contents from searchDir instead of the parent directory where the program is executing from.
Tom Reilly wrote:
You said searchDir. Did you mean searchThis? The code creates a directory then creates a file in that directory. Then it asks for the parent directory of the file you just created, which is the directory you just created. Then it prints the file names in that directory, which I assume is the file you just created. True? Please elaborate on what you think should happen.I tried out the code, and it still reads contents from searchDir instead of the parent directory where the program is executing from.
Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia