PDA

View Full Version : opening ascii text file without an extension in browser


tgopalakrishnan
12-21-2002, 06:30 AM
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?

Yours
T.Gopalakrishnan

Skyzyx
12-21-2002, 06:41 AM
Well, I know that sometimes pure text files will lose their formatting when crossing platforms. Have yu ever tried opening a Mac Text file on a Pee-Cee, or vice-versa? The text all runs together. This might be the problem, in which case I have no idea how to fix it... except:

I don't know if you can or not, but if you could modify your program to understand some sort of delimiter, you could perhaps delimit your data in a way that your program could read it... maybe it'd work.

tgopalakrishnan
12-26-2002, 04:04 AM
I cannot alter my file because it is created by an background process.i am now using win2000 snd IE 6.
so one find an soultion pls reply me
Yours
T.Gopalakrishnan