Search:

Type: Posts; User: jackofalltrades

Search: Search took 0.01 seconds.

  1. i see, well thanks for the help

    i see, well thanks for the help
  2. But isn't that method for c++ ?

    But isn't that method for c++ ?
  3. Get file creation time in a while loop

    So I have a while loop that reads in file names from a text, and I want to get the file creation time of each file that it reads in. Is there a way to do this ? (Working on a windows 98 computer,...
  4. Replies
    2
    Views
    741

    Yup I got it to print all the file names, I was...

    Yup I got it to print all the file names, I was just placing the loop in the wrong place... thanks though.
  5. Replies
    2
    Views
    741

    Increment the strings

    #include<stdio.h>


    int main()
    {
    char line[1000];
    int i=0;
    FILE *file_in;
    file_in=fopen("filenames.txt", "r");
    fscanf(file_in,"%s", line);
  6. Thanks for all the help I have figured it out.

    Thanks for all the help I have figured it out.
  7. The file size is too big for me to upload it,...

    The file size is too big for me to upload it, however, you would ideally expect all the hex values converted to ints and all the ints being printed to the screen (tab separated) however, i want to...
  8. Don't have a code yet, however, I tried to work...

    Don't have a code yet, however, I tried to work with fwrite and couldnt figure out what the parameters should be. Logically, however I think that I need to have another pointer that points to the...
  9. I want to write the converted values i.e the int...

    I want to write the converted values i.e the int values and not the hex values. I'm having trouble with that.
  10. #include #include ...

    #include <stdio.h>
    #include <iostream>


    using namespace std;


    // Get the size of a file
    long getFileSize(FILE *file)
    {
  11. Read ints from a binary file that has 2560 numbers in it and write it to a file

    #include <stdio.h>
    #include <iostream>


    using namespace std;


    // An unsigned char can store 1 Bytes (8bits) of data (0-255)
    typedef unsigned char BYTE;
  12. I have got the code working, however i'm having...

    I have got the code working, however i'm having issues with writing them to a file... does anyone have suggestions ?
  13. i'm not entirely sure of that, so u think i...

    i'm not entirely sure of that, so u think i should use buffersize instead ?
  14. This is the output that I get.

    This is the output that I get.
  15. yup they appear as garbage characters in a text...

    yup they appear as garbage characters in a text editor
  16. Read ints from a binary file that has 2560 numbers in it

    #include <stdio.h>


    int main(void)
    {
    FILE *fp;
    int foo[10];
    int i;
Results 1 to 16 of 16