Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: File IO

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Location
    Chandler, Arizona, USA
    Posts
    25
    My Mood
    Devilish
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Default File IO

    File IO is a large subject, and what I really find confusing about
    it is that nearly anywhere you look for information on it, you find
    a morass of different methods listed on how to read or write to
    files, but nothing that really sorts them out from each other, as
    to why you would use one method over another.

    Does anyone know of a good tutorial site the makes this all clear?

    Oracle's site has one that goes over the methods, but nothing
    explaining why you would use one method over the other in a clear
    manner, and the whole Java API is not much help in that regard
    either, although I can say that it beats the hell out of Microsoft's
    Visual Basic API!


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    70
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: File IO

    I think you are looking for tutorial on nio (new IO) released by Oracle since JDK 5.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Location
    Chandler, Arizona, USA
    Posts
    25
    My Mood
    Devilish
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Default Re: File IO

    Well, I am really looking for something that expands on this:
    Reading, Writing, and Creating Files (The Java™ Tutorials > Essential Classes > Basic I/O)

    AND any other forms, including nio. Reason is, I want to know File IO well, as
    I expect that I will be taking the Java certification exam that includes that in the
    future. I suppose the best way to word the question is, is there an
    all-encompassing tutorial (or book) out there that explains why you would use
    one method over the other, that is all-inclusive of the different methods that
    can be used!

  4. #4
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    70
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: File IO

    I doubt if you could get all in one kind of tutorial but you can surely get tutorial of operations like reading, writing file etc.

  5. The Following User Says Thank You to dineshj83 For This Useful Post:

    Skywola (November 28th, 2013)

  6. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: File IO

    Find a book with a thorough chapter on File IO, the Deitel books are the most thorough I've seen, read it, type in every example, run it, bend it, break it, fix it until you understand it completely, then do every chapter exercise. Reading along will not give you a thorough understanding.

  7. The Following User Says Thank You to GregBrannon For This Useful Post:

    Skywola (November 28th, 2013)

  8. #6
    Junior Member
    Join Date
    Oct 2013
    Location
    Chandler, Arizona, USA
    Posts
    25
    My Mood
    Devilish
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Default Re: File IO

    Quote Originally Posted by GregBrannon View Post
    Find a book with a thorough chapter on File IO, the Deitel books are the most thorough I've seen, read it, type in every example, run it, bend it, break it, fix it until you understand it completely, then do every chapter exercise. Reading along will not give you a thorough understanding.
    I hear you on that . . . . I am currently working through a transcender practice
    test for the first Java 7 exam, and it is no walk in the park, if you do no coding, your
    chances of passing are about that of a snowball in hell. I'll check into Dietel,
    I've read some of their other books.

  9. #7
    Member
    Join Date
    Dec 2013
    Location
    Honolulu
    Posts
    83
    Thanks
    1
    Thanked 4 Times in 2 Posts

    Default Re: File IO

    This is a great topic for me. Network interface built in a computer or added on as expansion as into the slots, are the physical parts to handle. But say in Wi-Fi network, each file contributing to the network must run at impressive accuracy for the whole network to run. There are many examples already given about File IO and anyone can use it and compile it and store it on their own and the other parties system. I am reading a book by Jackie Barker, phd in computer science, Beginning Java Objects. Excellent way to read is using UML, and to figure out where things are.

Similar Threads

  1. Created a Random Access File that saves gibberish to a text file
    By Deprogrammer in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 21st, 2012, 11:45 AM
  2. Run a jar file inside a batch file with Windows 7 Task schduler
    By kingnachi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 15th, 2012, 09:20 AM
  3. solaris machine /tmp folder, File.exists() cant see the existing file.
    By aragorn1905 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: December 27th, 2011, 09:41 AM
  4. insert(embed) a file object (.txt file) in MS excel sheet using java.
    By jyoti.dce in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 12th, 2010, 08:16 AM
  5. Replies: 8
    Last Post: January 6th, 2010, 09:59 AM