Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE displaying text file

Status
Not open for further replies.

techseek

MIS
Nov 5, 2010
97
US
Hello
Just noticed that a plain text file which we generate for reporting Form13-F when open in notepad displays like "spaced" but uneven/disorganized data. Yet, when I open it in IE, it displays it in nice organized columns.
Just wondering what IE is doing to recognize the order in that text file.

Thanks all
 
Hi

Impossible to say without seeing the file and knowing how are you accessing it.

In meantime a guess : it has Unix or Mac line endings, which are unknown for NotePad but Explorer is able to detect them.


Feherke.
[link feherke.github.com/][/url]
 
Thanks for responding.
I'm just opening it thru file/open in IE9. the file itself is just on my desktop. It may be what you say. Now if I knew how to reveal those....
 
Hi

techseek said:
I'm just opening it thru file/open in IE9. the file itself is just on my desktop.
Then the issue is probably with the file itself.

techseek said:
Now if I knew how to reveal those...
Use a text editor able to detect and change the line endings. Personally I preferred ConTEXT.

Feherke.
[link feherke.github.com/][/url]
 
From what you are saying it sounds like in your text file content looks like

Code:
hello     a          world     today is
great

but in a browser is appears

Code:
hello a world today is great

if that is the case it is because browsers do not render extra spaces.

Darryn Cooke
| Marketing and Creative Services
 
hello
the text file in when viewed in notepad++ in fact has embedded CR's
the line data itself fills all 130 or so characters per line. The CR's appear in different places along a line. The browser however does the "wrap around" at each CR such that the data id displayed in oorganized columns.

It is no longer an issue/question.
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top