+ 2

How do you add external files in a java program

3rd Jan 2017, 6:47 AM
Robben Amari
6 Respostas
+ 1
I don't understand your question - too many shortcuts. But Css is placed in Java package and I access it through reaources - from my memory - in Costs.java is included CSS in CostsController.java are included images.
3rd Jan 2017, 8:06 AM
Ondřej Doněk
Ondřej Doněk - avatar
0
You mean resources (images, data files etc.) or totally external files?
3rd Jan 2017, 7:02 AM
Ondřej Doněk
Ondřej Doněk - avatar
0
Yes images, data and files
3rd Jan 2017, 7:03 AM
Robben Amari
0
Strange answer but look at my first paid Java application - there is usage of CSS and image file - https://github.com/ondrejd/java-costsfx-app
3rd Jan 2017, 7:08 AM
Ondřej Doněk
Ondřej Doněk - avatar
0
well done @mr Ondrej Donek, pls hw did u created and code of css did use to created 404 and submit form on java application. pls help me i needed it.
3rd Jan 2017, 7:55 AM
yommy
yommy - avatar
0
You can access txt files. Use Scanner objects to take input from txt file.Use the syntax Scanner s =new Scanner("filedestination"); To write to txt files use PrintWriter object of java.io package or any of the subclasses of Writer class. To write to txt use BufferedReader just as I did in one of my codes. Check it out.
3rd Jan 2017, 4:49 PM
dawood mansoor
dawood mansoor - avatar