Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how do i call a text document with java but not reading from it
Posted
Comments
Shubhashish_Mandal 7-Mar-13 9:23am    
what do you mean by call ? what exactly you want?
[no name] 7-Mar-13 9:24am    
You do not call text files.
hatasi 7-Mar-13 9:26am    
opening a text document in with a java program, like the ReadMe files
[no name] 7-Mar-13 9:34am    
That makes no sense at all. There is no point to opening a file and not reading/writing to it as you have stated that you do not want to do. So you need to explain what it is that you do want to do, what it is that you have tried and where you are stuck.
ZurdoDev 7-Mar-13 10:00am    
"Here text file, here boy". What exactly do you mean by call? Do you mean open a file?

If you meant 'calling' as to represent text file as an object. You can use File object which can extract meta-data of your text file. And/Or you can create your own object that represent the data that you need.

If you meant 'calling' as to represent text file in GUI. you will need to create View for your file for the front-end and Object that represent your file on the back-end. Note that this could be more complex as if you want to apply design pattern and/or architecture on your program.
 
Share this answer
 
use File class's object for it..
if u want to display it on GUI<browser> use iframe for it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900