change to
fscanf(myFile, "%1d", &numberArray[i]);
More Related Contents:
- isnt everything where it should be, why the segmentation fault?
- Strange character after an array of characters
- How to skip a line when fscanning a text file?
- Why does scanf() need & operator (address-of) in some cases, and not others? [duplicate]
- Read int values from a text file in C
- Access element of array of pointer of structure
- Explanation of output of this C code
- Getting an error while running following code
- Finding target sum of two numbers in array
- Correctly allocating multi-dimensional arrays
- Why isn’t the size of an array parameter the same as within main?
- C sizeof a passed array [duplicate]
- C: Multiple scanf’s, when I enter in a value for one scanf it skips the second scanf [duplicate]
- How do I create an array of strings in C?
- Array-size macro that rejects pointers
- Does scanf() take ‘\n’ as input leftover from previous scanf()?
- How to initialize array to 0 in C?
- difference between %ms and %s scanf
- Freaky way of allocating two-dimensional array?
- c structure array initializing
- Why am I being allowed to use a const qualified variable as an array size in C?
- Pointer vs array in C, non-trivial difference
- Max string length using scanf -> ANSI C
- Get scanf to quit when it reads a newline?
- C – trying to read a single char from stdin (and failing) w/ scanf / getchar
- How to include a dynamic array INSIDE a struct in C?
- Finding out the duplicate element in an array
- Exceeding array bound in C — Why does this NOT crash?
- Cast T[][] to T*
- Difference between scanf() and fgets()