|
-
November 13th, 2006, 02:24 AM
#1
tab to spaces conversion
Hi All,
This is a very basic q, but i am kinda stuck now in my code.
My Appln reads from a file which contains tabs as well as spaces between words, Now when this application ( in various platforms) reads this file it treats the tab character (\t ot ^I) in various ways. like in Windows it is putting a box character or in SOlaris it is totlly ignoring , which is spoiling the alignment while displaying the file.
Is there any way to convert this tab in right no of spaces independent of the platform as I have notice in some OS a tab is equal to 4 spaces & in some as 8.
How can i recognize this thing & replace accordingly.
THanks
Nimisha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|