I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?
libathos
0
Light Poster
Recommended Answers
Jump to PostNot much to go on. What sort of input file are you reading? Text? Source code? CSV? XML? Something else?
Where are you stuck? Do you know how to open and read the file? If not, try google, there's a lot to help you there. Then you have to …
Jump to PostWhat code do you have so far?
Jump to PostMaybe you should give us a sample of the text file you're trying to read, and some idea of what it's supposed to result in.
It sounds like you want to compile java, but I'm pretty sure you wouldn't have wandered into a compilers course by accident.
Jump to PostAnd your Class class (there's already a class called Class, this could cause complications) wants to have a collection of Method objects, and a Method has a collection of Variables? Am I understanding you correctly now? You're making an in-memory representation of a bunch of class files?
All 15 Replies
jon.kiparsky
326
Posting Virtuoso
seanbp
4
Junior Poster
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
libathos
0
Light Poster
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.