C语言中从.txt文件中按行读取字符串至数组中 //若使用一维数组使用以下程序 #include <stdio.h> main(){ char s1[20] = {0};char s2[20] = {0};char s3[20] = {0};int i=0;FILE *fp;fp = fopen("1.txt","r");fscanf(fp,"%s",s1);fscanf(fp,"%s",s2);fscan