Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove extra spaces, tab in a text file?
#4
Solved: 12 Years, 10 Months, 3 Weeks ago
HI Kishore ,

For returning a string without Trailing & Leading Blank spaces can be done by using "Trim" built in function.
( i.e Rtrim,Ltrim,Trim)

Code:
str= "     hai"   ; ltrim(str) --> "hai"

str= "hai    "    ; rtrim(str) --> "hai"

str= "   hai     " ; trim(str) ---> "hai"
If your question is regarding the eliminating leading & trailing blank spaces then , the above solution might be useful to u.
Reply


Messages In This Thread
RE: How to remove extra spaces, tab in a text file? - by sreekanth chilam - 12-14-2008, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove the spaces from a string Anand 7 31,004 08-12-2019, 04:47 PM
Last Post: sreekanthP
  How to remove text in the webedit silpavinod 3 14,556 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 5,780 09-13-2015, 12:06 AM
Last Post: ADITI1992
  How to retrieve specied string from text file nsuresh316 1 2,890 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Reading and writing is the same text file poulomi21b 2 6,676 07-08-2014, 12:39 PM
Last Post: poulomi21b

Forum Jump:


Users browsing this thread: 1 Guest(s)