Guys, how to retrieve a text file in java???
vin24
0
Newbie Poster
Recommended Answers
Jump to PostHi Vin, I like to use a static utility class like this:
import java.io.BufferedReader; import java.io.FileReader; public class Utility { public static BufferedReader openFile(String filename) { try { return new BufferedReader(new FileReader(filename)); } catch (Exception e) { return null; } } public static void closeFile(BufferedReader reader) { …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.