1.Why are you showing us this on a regular notepad? You have netbeans I saw.
2.I don't understand the argument of FileInputStream when I try to do something similar to this I get an error saying incompatible types 'String found' while I need an argument? .. I don't really understand what I'm doing wrong can you explain this maybe?
@Mugenai For question 1 the reason I used Notepad was because its always bettr 2 learn programming as in netbeans it gives possible methods and so on in the drop down menu... Also I felt this was better as I am dealing with the notepad file connection as well.
As for question 2, the arguments are clearly explained in the video as well as the code. Since u asked it is the NAME of the .TXT file. (Also the reason i put . is to mean current directory, othrwise you need to give the full path).
@TheYoosuf I cannot exactly tell you what sort of problem you may be having but jus 2 folow up on the prev comment (max chracter limit!) wen passing the argument remmbr 2 give EITHER full path as in ("C:\MyFiles\Name.txt") OR (".\\Name.txt") Remember 2 use the second method ONLY IF ur java file is in the same location. If it still doesnt work check whethr u have correctly pased parameters for datainputstream and NufferedReader as well. Send me a code sample if u need any furthr clarificaitons
two questions;
1.Why are you showing us this on a regular notepad? You have netbeans I saw.
2.I don't understand the argument of FileInputStream when I try to do something similar to this I get an error saying incompatible types 'String found' while I need an argument? .. I don't really understand what I'm doing wrong can you explain this maybe?
Mugenai 11 months ago
@Mugenai For question 1 the reason I used Notepad was because its always bettr 2 learn programming as in netbeans it gives possible methods and so on in the drop down menu... Also I felt this was better as I am dealing with the notepad file connection as well.
As for question 2, the arguments are clearly explained in the video as well as the code. Since u asked it is the NAME of the .TXT file. (Also the reason i put . is to mean current directory, othrwise you need to give the full path).
TheYoosuf 11 months ago
@TheYoosuf I cannot exactly tell you what sort of problem you may be having but jus 2 folow up on the prev comment (max chracter limit!) wen passing the argument remmbr 2 give EITHER full path as in ("C:\MyFiles\Name.txt") OR (".\\Name.txt") Remember 2 use the second method ONLY IF ur java file is in the same location. If it still doesnt work check whethr u have correctly pased parameters for datainputstream and NufferedReader as well. Send me a code sample if u need any furthr clarificaitons
TheYoosuf 11 months ago
The music helped too...lol...made me relax and concentrate!
RawkStarAngel 1 year ago 2
@RawkStarAngel Thnx it iz Ahmed Bukhatir Remember Them song
TheYoosuf 1 year ago