Search:

Type: Posts; User: glopv2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,171

    No, I have two files open. . . And yeah, I did...

    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. . . ....
  2. Replies
    3
    Views
    1,171

    problem with fprintf

    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").
    ...
  3. Replies
    3
    Views
    2,044

    Well, I've found that whenever my program...

    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...
  4. Replies
    3
    Views
    2,044

    hmm, yes that loop does successfully print the...

    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
  5. Replies
    3
    Views
    2,044

    Problem with reading files

    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...
  6. Replies
    1
    Views
    996

    Problem with FAQ on directories

    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:
  7. Wow

    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...
  8. Thread: Problems

    by glopv2
    Replies
    6
    Views
    1,433

    ohh, and you need to pass an address to your...

    ohh, and you need to pass an address to your scanf statement.
    So, you need to pass &input instead of input.

    Right?
  9. Thread: Problems

    by glopv2
    Replies
    6
    Views
    1,433

    Here's what I think: 1. You need to pass char...

    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
  10. Replies
    2
    Views
    1,150

    Searching files in a directory

    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...
Results 1 to 10 of 10