C Programming - Read specific line from text file

前端 未结 2 1622
渐次进展
渐次进展 2021-01-04 23:14

Here is the code:

int main()
{
    struct vinnaren
    {
        char vinnare[20];
        int artal;
    };
    struct vinnaren v[10];
    int inputrader;
         


        
2条回答
  •  再見小時候
    2021-01-04 23:47

    I got a really simple answer but I don't know if it is helping anyone:

    int OpenCommand(int idOfCommand)
    {
        fscanf(file_ptr, "%[^idOfCommand]",a[idOfCommand]);
        printf("%d\n", a[idOfCommand]);
        system("pause");
    
        return 0;
    }
    

提交回复
热议问题