Grab the path on the default image setting. Head over to your view and click on your image field. Look for "no results behavior". In the text area add 

Verify that your view does not have hide if empty checked.

Save your view. 

How do you include a user's default image in a Drupal 7 view that lists people?
I want to write a method which prints out the content of a file.

My method looks like this:

void showFile(char* src) {
char output[100];
char a = 0;
FILE *file;
int i = 0;

file = fopen(src, "r");
do {
    system("cls");
    for (i = 0; i &lt; min(24, filelength(src)-i); i++) {
        fgets(output, 24, file);
        printf("%s", output);
    }
    printf("\nNaechste Seite mit &lt;Enter&gt; ausgeben\n");
    a = _getch();
} while (a == 13 &amp;&amp; i &lt; filelength(src)-1);
printf("\n\n");
fclose(file); 
file = NULL;
}


It just needs the filepath the file is stored in as a String.

the min() method looks like this, it returns the smaller value:

int min(int x, int y) {
if (x &gt; y) {
    return y;
}
else {
    return x;
}
}


Now my problem is, when a file looks like this for example:

This
Is
The
Files
Content


It results in something like that:

This
Is
The
Files
Content
Content
Content
Content
Content
Content
Content
Content
Content


And so on. I don't know where exactly the problem is. I hope someone else can figure out my failure that I am unable to see?

Thanks in advance
