+ 2
How do you add external files in a java program
6 Answers
+ 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.
0
You mean resources (images, data files etc.) or totally external files?
0
Yes images, data and files
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
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.
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.