Reading file backwards
#5

Found this snippet by using the search function. Don't know if it's what you're looking for though.

pawn Code:
Function:Reverse(string[])
{
         // Setting vars
    new string1[256];
               lengthOfString = strlen(string);

        // Processing
    for(new i = 0; i < strlen(string); i++)
    {
        string1[i] = string[(lengthOfString-i)];
    }

        // Returning processed string
    return string1;
}
Reply


Messages In This Thread
Reading file backwards - by Suttix - 28.03.2019, 18:18
Re: Reading file backwards - by Suttix - 28.03.2019, 21:02
Re: Reading file backwards - by TokicMajstor - 28.03.2019, 23:00
Re: Reading file backwards - by Suttix - 29.03.2019, 00:23
Re: Reading file backwards - by introzen - 29.03.2019, 08:44
Re: Reading file backwards - by Logic_ - 29.03.2019, 09:24
Re: Reading file backwards - by Suttix - 29.03.2019, 11:24
Re: Reading file backwards - by Suttix - 29.03.2019, 11:59
Re: Reading file backwards - by NaS - 29.03.2019, 13:59
Re: Reading file backwards - by Suttix - 29.03.2019, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)