Hi

I created a script that reads a file and attaches a string infront of each read in 
item.  When the file is saved with the changes though, each item has a blank line 
between the next item.  The original text document does is single sapced.

Original tesxt file
item1
item2
item3

Saved text file
string item1

string item2

string item3

I think what his happening is when the items are read in lots of white space is 
attached to the end of the string.

Is there a way to remove only trailing white space, from a string, but retain white 
spaces with in the string?
thanks,

Marc

Marc Fromm
Computer Systems Specialist
University of Montana--Western
710 South Atlantic Street
Dillon, MT 59725
406-683-7164
 

 
________________________________________________________________
Sent via the HotDawg Mail system at hotdawg.umwestern.edu


 
                   

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to