No, I have two files open. . . And yeah, I did name the pointer incorrectly, but that wasn't the problem since it was consistent. I now changed the fopen from "w" to "a" and the program works. . . ....
Type: Posts; User: glopv2
No, I have two files open. . . And yeah, I did name the pointer incorrectly, but that wasn't the problem since it was consistent. I now changed the fopen from "w" to "a" and the program works. . . ....
Sorry to make this a new thread, but I decided my old post was incredibly poorly worded..
So, when I try to use fprintf, the program fails to write to the file (the file becomes "unreadable").
...
Well, I've found that whenever my program executes a line with fprintf, nothing is written.
The fopen command works, but nothing is written to the file. When I finish the program, and try to open...
hmm, yes that loop does successfully print the file. So, now I have a starting point, I'll keep looking at it. Thanks! I'll repost if I am still stuck
Hi all,
I wrote a program in linux which parsed the headers of some data files I have. Now, I've tried to port it to windows, and everything seems to work except I can't seem to actually read the...
Hi,
I am reading the FAQ article on directories, and I noticed the example that lists all files in the directory has the line
printf("%s\n", dir->d_name);
but, when I tried to do:
He /did/ tell you what you need to do. Did you read what he wrote or just ignore it because he didn't literally type it for you?
If you don't account for double digit numbers taking up two...
ohh, and you need to pass an address to your scanf statement.
So, you need to pass &input instead of input.
Right?
Here's what I think:
1. You need to pass char dat to the function printf.
i.e. printf("the result is %X\n", dat);
2. I don't know.
3. You're missing a parentheses in your scanf line.
Cheers
Hi,
I want my program to create a String vector containing all the filenames in the directory the program is run in. How do I do this?
I've been searching the internet for hours and all I can...