/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    FILE *fp;
    char line[32768];
    fp = fopen("ffun.txt", "r");
    line[0] = '|';
    while(fgets(line + 1, sizeof(line) - 1, fp))
    {
        if(line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = 0;
        strcat(line, "|");
        puts(line);
    }
    fclose(fp);
    return 0;
}
