how to read a string from a \n delimited file

后端 未结 5 457
天涯浪人
天涯浪人 2021-01-18 10:20

I\'m trying to read a return delimited file. full of phrases.

I\'m trying to put each phrase into a string.

The problem is that when I try to read the file w

5条回答
  •  无人共我
    2021-01-18 11:05

    intially send data using Payload_ID 00 01 02 03 ....10

    use

    char *pChar="" ; //for string capturing.

    fprintf(fp1, "%s", strtok(pChar,"Payload_ID"));

提交回复
热议问题