JAVA: I/O:streams writing/reading to various directories

Discussion in 'Software' started by progbass8, Jul 15, 2004.

  1. progbass8

    progbass8 Private E-2

    Hello all,
    I have a very minimal knowledge base on File I/O and data streams, enough to get the job done. What i dont know however is how to open an input or output stream that will read from or write to a file in a directory other than the one where the source code is located. I believe of the top of my head you would create an input stream like so: BufferedReader name = new BufferedReader(new FileReader(filename)); . However if i have to create and recall from a large array of file it is very inconvinent to store them in the same directory. Please, someone let me know if there is something i can do. Thanks in advance.
    Bryan
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds