Howdy, Stranger!

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

Categories

opening ascii text file without an extension in browser

tgopaltgopal Member Posts: 3
I am Using window.open method to open a file.The file has no extension
and the content of the file is pure text.
If i try to open that form browser's file/open the
content of the file is shown with the proper formatting.
But when i am trying to open that file in side my application
using Apache Tomcat the formatting is lost.i also tried the document.open()
method to set mime type but it doesn't seem to be working.
The files are created by an background process so i can't give an extension
Is there any way to get this working?
(i am using WINDOWS 2000 and IE6)
Yours
T.Gopalakrishnan

Comments

  • mac_doggiemac_doggie Member Posts: 488
    Can it be that your end of line breaks are
    in stead of
    ?
    In other words: On a unix machine when typing a linebreak(enter) a a carrier return and linebreak mark are inserted in your text
    on a windows machine you only place a linebreak
    This can result in different output formatting.

    : I am Using window.open method to open a file.The file has no extension
    : and the content of the file is pure text.
    : If i try to open that form browser's file/open the
    : content of the file is shown with the proper formatting.
    : But when i am trying to open that file in side my application
    : using Apache Tomcat the formatting is lost.i also tried the document.open()
    : method to set mime type but it doesn't seem to be working.
    : The files are created by an background process so i can't give an extension
    : Is there any way to get this working?
    : (i am using WINDOWS 2000 and IE6)
    : Yours
    : T.Gopalakrishnan
    :

    ;-)
    -mac-
    mailto:programmersheaven@mac-doggie.nl
    the Netherlands...


  • compuchipcompuchip Member Posts: 273
    : Can it be that your end of line breaks are
    in stead of
    ?
    : In other words: On a unix machine when typing a linebreak(enter) a a carrier return and linebreak mark are inserted in your text
    on a windows machine you only place a linebreak
    This can result in different output formatting.

    POSSIBLE SOLUTION:
    Try uploading it binary instead of ASCII or the other way around
    :
    : : I am Using window.open method to open a file.The file has no extension
    : : and the content of the file is pure text.
    : : If i try to open that form browser's file/open the
    : : content of the file is shown with the proper formatting.
    : : But when i am trying to open that file in side my application
    : : using Apache Tomcat the formatting is lost.i also tried the document.open()
    : : method to set mime type but it doesn't seem to be working.
    : : The files are created by an background process so i can't give an extension
    : : Is there any way to get this working?
    : : (i am using WINDOWS 2000 and IE6)
    : : Yours
    : : T.Gopalakrishnan
    : :
    :
    : ;-)
    : -mac-
    : mailto:programmersheaven@mac-doggie.nl
    : the Netherlands...
    :
    :
    :

Sign In or Register to comment.