+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 6
    Points: 88, Level: 1

    Join Date
    Feb 2014
    Posts
    11
    Helped
    0 / 0
    Points
    88
    Level
    1

    mikro c for PIC MMC Library

    How to read a whole line until new line occurs in a text file...using MMC Fat library........
    please help me here...

    •   AltAdvertisment

        
       

  2. #2
    Banned
    Points: 12,436, Level: 26

    Join Date
    Apr 2013
    Posts
    2,528
    Helped
    538 / 538
    Points
    12,436
    Level
    26

    Re: mikro c for PIC MMC Library

    Read until \n or \r is encountered. Zip and post mikroC project files.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Newbie level 6
    Points: 88, Level: 1

    Join Date
    Feb 2014
    Posts
    11
    Helped
    0 / 0
    Points
    88
    Level
    1

    Re: mikro c for PIC MMC Library

    Thanks for the help...i did as you said by writing the following code....
    while(1)
    {
    Mmc_Fat_Read(&char1);
    Mmc_Fat_Read(&char2);
    if(char1==0x0d & char2==0x0a)
    {
    break;
    }
    byte[i]=char1;
    Mmc_Fat_Seek(Mmc_Fat_Tell()-1);
    i++;
    }



--[[ ]]--