Reading a text file



Hello !
I am looking for a function code , which might read some formatted text from a text file The file could be on simple notepad , WordPad , or a dot doc file in WinWord. The function should read each string individually and then write in another file coded on Java platform in GUI labeled frame.

For Example :
A mail address on an envelop .

John Smith , Dr .
2345 , Oxford Street ,
New York Shire ,
London , SW 4 .

Thanks ,
ah.

Comments

  • [b][red]This message was edited by zibadian at 2006-11-7 13:27:8[/red][/b][hr]
    :
    :
    : Hello !
    : I am looking for a function code , which might read some formatted text from a text file The file could be on simple notepad , WordPad , or a dot doc file in WinWord. The function should read each string individually and then write in another file coded on Java platform in GUI labeled frame.
    :
    : For Example :
    : A mail address on an envelop .
    :
    : John Smith , Dr .
    : 2345 , Oxford Street ,
    : New York Shire ,
    : London , SW 4 .
    :
    : Thanks ,
    : ah.
    :
    :
    For a simple textfile use the BufferedReader and FileReader classes. For word documents you need other reader classes, since these include a header with various file data, formatting code and are more like binary files than text files.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion