char jp[row][col];
char ch;
while ((ch = getchar()) != EOF) {
if (ch >= 1 && ch <= 45)
jp[i][j++] = ch;
if (j == col) {
++i;
j = 0;
}
}
besides that, how do i read from and write data into a text file simultaneously? at the command prompt i enter filename <filename.txt to read data into the code, if i want the output to be written into a text or doc file, what should i enter at the command prompt for reading and writing at the same time? reading and writing are 2 separate files. thanks for your help.

New Topic/Question
Reply




MultiQuote






|