[Help] About Check Case Insensitive
#6

Alright, from what I see.. in fopen, case does not matter. In case, you're using something like Dini or any other include, I'm not sure if it will work because you'll have to change it.

An example with simple file.inc

pawn Код:
main( )
{
    new File:example = fopen("FILE.TXT", io_read);
    // A file called file.txt (lowercase) and it's located in scriptfiles
    if(example)
    {
        if(!strcmp("FILE.TXT", "file.txt", false))
        {
            print("The file was found and it does match!");
            fclose(example);
        }
        else print("The file was found, but it does not match in the letters case.");
    }
}
The output was: The file was found, but it does not match in the letters case.
Reply


Messages In This Thread
[Help] About Check Case Insensitive - by David (Sabljak) - 01.06.2013, 13:56
Re: [Help] About Check Case Insensitive - by Konstantinos - 01.06.2013, 14:00
Re: [Help] About Check Case Insensitive - by David (Sabljak) - 01.06.2013, 14:02
Re: [Help] About Check Case Insensitive - by Konstantinos - 01.06.2013, 14:07
Re: [Help] About Check Case Insensitive - by David (Sabljak) - 01.06.2013, 14:10
Re: [Help] About Check Case Insensitive - by Konstantinos - 01.06.2013, 14:21
Re: [Help] About Check Case Insensitive - by David (Sabljak) - 01.06.2013, 14:24

Forum Jump:


Users browsing this thread: 2 Guest(s)