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?
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 !!
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 :'(
MoroccoGamer 3 days ago
What if I want to read only integers, calculate them and write them into same .txt file ?
Labyrinthman 2 months ago
thank you so much this was very helpful i
BIGUP TO ME BREDDA HomeWorkJAVA
aekholm10 2 months ago
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
liamsdomain 9 months ago
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?
4sky 9 months ago
how about in MIDlet??
stonechime18 11 months ago
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 11 months ago
@jishon27 if you were using my code you read one line by input.nextLine()
HomeWorkJAVA 10 months ago
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 11 months ago
@cyrusxxx1 You need to declare a BufferedWriter .. if you still need code PM me
HomeWorkJAVA 10 months ago
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
ankithbk29 1 year ago
The audio and video are not in sync bro
phamminh91 1 year ago
@phamminh91 yes sorry realized this after the upload
HomeWorkJAVA 1 year ago 2
Very simple and easy to understand. Well done man, excellent tute.
TRX2015 1 year ago