Re: remove first character in text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just want to add to this with a little more info....

my text file is a list of email addresses with a "%" separating them. For example:

user@xxxxxxxxxx%user@domain2.com%user@xxxxxxxxxxx

Now sometimes I end up with a "%" at the beginning. For example:

%user@xxxxxxxxxx%user@domain2.com%user@xxxxxxxxxxx

Or:
%%user@xxxxxxxxxx%user@domain2.com%user@xxxxxxxxxxx

Now that causes me issues else where in the script. So what I need to do is check if the "%" character exists at the beginning of the file and remove any if the "%" is there.

ideas?

d




Hi there.. I have a text file where I need to remove JUST the
first character in the text file. Can anyone point me to a tutorial?

d



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux