Any possible way you get me the source somehow?
Type: Posts; User: new2c95
Any possible way you get me the source somehow?
Is anyone able to give me a code example?
But every file will have a different line size. Isn't there some way I could detect the line size?
What if the file is a binary file or the line is longer than 100 characters? Will that still work?
I've got some argument checking above the code I'm posting so this is just the main snippet
FILE *fp;
char *ch;
....
if ((fp = fopen(argv[1], "rb")) != 0)
{
...
Hello everybody,
I was just wondering if someone could give me example code on how to read a file line by line and then later access them by doing something like
lines[0] //Line number one...