forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


White Space Stripping

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Oct 26, 2006 7:35 am    Post subject: White Space Stripping Reply with quote

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



space emails.txt
 Description:

Download
 Filename:  space emails.txt
 Filesize:  1.75 KB
 Downloaded:  1107 Time(s)

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Oct 26, 2006 7:47 am    Post subject: Reply with quote

Question Question Question

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
View user's profile Send private message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Oct 26, 2006 7:53 am    Post subject: Reply with quote

It does not work !

and neither does either of the trim functions in the string.dll on this file !

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Oct 26, 2006 8:04 am    Post subject: Reply with quote

Question

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Oct 26, 2006 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Nov 14, 2006 12:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group