Added: 1 year ago
From: HomeWorkJAVA
Views: 10,983
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (14)

Sign In or Sign Up now to post a comment!
  • please can you tell me how to read any file i want from filechooser button then take what i want from it ! thanks please help asap :'(

  • What if I want to read only integers, calculate them and write them into same .txt file ?

  • thank you so much this was very helpful i

    BIGUP TO ME BREDDA HomeWorkJAVA

  • sorry if this is a dumb thing for me to ask but how do I put the files contents into an array. say the file contains this "1, 5, 3, 8" how could I make that into an array like this "int chunk[] = 1, 5, 3, 8;" then I need to return the array

  • i've been trying to figure this out forever because you said the .txt file needs to be in the same directory, but in your vid i didn't see your main.java in the same directory as your deposits.txt. deposits.txt was in the directory before main.java. why is that?

  • how about in MIDlet??

    

  • what if i only want to print only one line from the notepad? like example in ur notepad i just want to display 2000

  • @jishon27 if you were using my code you read one line by input.nextLine()

  • how can I update or overwrite specific word in a textfile?

    ex. name.txt

    1 name1

    2 name2

    3 name3

    4 name5

    5 name5

    now I want to change name5 to name4

    how can I do that? please help me you can PM the sample code.

    tnx for this vid!

  • @cyrusxxx1 You need to declare a BufferedWriter .. if you still need code PM me

  • this might not be the most efficient way to read a file..you could also upload a video using buffered input streams or using native io calls to the os..that way you can also teach how to read files quickly !!

    cheers

  • The audio and video are not in sync bro

  • @phamminh91 yes sorry realized this after the upload

  • Very simple and easy to understand. Well done man, excellent tute.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more