C# Programming
06-17-2009, 05:12 AM
I want to put this line of numbers:
9 1 10 10 8 2 7 2 9 0 10 9 1 8 2 10 7 2 -1
into a 19 number array array[19]
I am reading those numbers from a text file, but I don't know how to assign them to an array?
This is what I have so far, its reading from the text file....
int main(void)
{
char ch;
char string [256];
int i;
int raw;
FILE *fin, *fout;
fin=fopen("g:/cfinal/bowlin.txt", "r");
fout=fopen("g:/cfinal/bowlout.txt", "w");
9 1 10 10 8 2 7 2 9 0 10 9 1 8 2 10 7 2 -1
into a 19 number array array[19]
I am reading those numbers from a text file, but I don't know how to assign them to an array?
This is what I have so far, its reading from the text file....
int main(void)
{
char ch;
char string [256];
int i;
int raw;
FILE *fin, *fout;
fin=fopen("g:/cfinal/bowlin.txt", "r");
fout=fopen("g:/cfinal/bowlout.txt", "w");