| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Oct 26, 2006 7:35 am Post subject: White Space Stripping |
|
|
I have tried countless routnies and several DLL's to strip the white space at the right hand side of these emails (attached), and can not figure it out.
any ideas
Nathan
| Description: |
|
 Download |
| Filename: |
space emails.txt |
| Filesize: |
1.75 KB |
| Downloaded: |
1107 Time(s) |
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Oct 26, 2006 7:47 am Post subject: |
|
|
What's wrong with stepping through each line and doing a @trim() ??
Greetz
Dread
_________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Oct 26, 2006 7:53 am Post subject: |
|
|
It does not work !
and neither does either of the trim functions in the string.dll on this file !
Nathan
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Oct 26, 2006 8:04 am Post subject: |
|
|
Just did a small test:
| Code: | list create,1
list create,2
list loadfile,1,X:\space emails.txt
%%stop = 0
repeat
%%item = @next(1)
if @not(@ok())
%%stop = 1
end
list add,2,@trim(%%item)
until @equal(%%stop,1)
list savefile,2,X:\out.txt |
Works just fine with the file you put out for download.
Greetz
Dread
_________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Oct 26, 2006 8:05 am Post subject: |
|
|
Maybe write some code to find out what the ascii values of the last few
characters of each line is. Your answer may be hidden there.
-Garrett
_________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Nov 14, 2006 12:21 am Post subject: |
|
|
| Garrett wrote: | Maybe write some code to find out what the ascii values of the last few
characters of each line is. Your answer may be hidden there.
-Garrett |
Garrett I looked at the file with a hex editor and there is nothing but @cr()@lf() at the end of each line except the very last line.
Nathan have you tried the code above from Dr. Dread yet?
_________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|