Results 21 to 28 of 28
Thread: Read and modify text file
- 11-19-2008, 04:08 AM #21
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-19-2008, 04:33 AM #22
eh...As u can see, my program is able to concatenate the words so now i would like to set alligmnet to all those concatenated paragraphs.
- 11-19-2008, 08:00 AM #23
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
I'm sorry, but like I said before, you are not creating a word document, you are simply creating another text document and giving it the ".doc" extension, which will force the system (if the file associations are configured that way, which they usually are) to use Word to open it, but it is still only a text document. A text document doesn't have any kind of alignment.
You could indent the first line of a paragraph with a few simple spaces, but that's about it.Last edited by masijade; 11-19-2008 at 08:19 AM.
- 11-19-2008, 08:10 AM #24
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Once you use *.doc extension you can see that icon is also same as the normal word document. But it's not the same. You cannot workout in this way, if you want to deal with formatting, because as masijade says it's just a text file. I think in one of the previous post someone say about POI project.
- 11-19-2008, 08:52 AM #25
oh yea...i forgot the fact that the system is not creating the .doc .:o
Thanks again for clarifying my questions and doubts. rep ya all:)
- 11-19-2008, 09:06 AM #26
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 11-19-2008, 09:57 AM #27
yep still reading abt POI at //poi.apache.org/
- 11-19-2008, 10:03 AM #28
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes that's the place you have to read. :)
Similar Threads
-
[SOLVED] How do I read from a text file
By matzahboy in forum New To JavaReplies: 5Last Post: 11-17-2008, 04:47 AM -
How to Modify,Delete data in File Txt???
By hungleon88 in forum Advanced JavaReplies: 9Last Post: 09-24-2008, 03:19 AM -
find and replace text from a text file
By gezzel in forum New To JavaReplies: 2Last Post: 09-19-2008, 04:04 PM -
How to Read data from text file and calculate the values?
By janeansley in forum New To JavaReplies: 40Last Post: 07-04-2008, 08:41 AM -
How to read a text file from a Java Archive File
By Java Tip in forum Java TipReplies: 0Last Post: 02-08-2008, 09:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks