Search:

Type: Posts; User: jerez_z

Search: Search took 0.01 seconds.

  1. Thread: file mode

    by jerez_z
    Replies
    12
    Views
    1,670

    thanx

    thanx
  2. Thread: file mode

    by jerez_z
    Replies
    12
    Views
    1,670

    file mode

    if I open a file that does not exist with mode r will the file pointer return as false? Example:



    FILE *filePtr = fopen(".//file_does_not_exist.dat", "r");

    if(!filePtr) {
    printf("File...
  3. Replies
    27
    Views
    8,926

    alright makes sense, thats the way I thought it...

    alright makes sense, thats the way I thought it was anyway.....
  4. Replies
    27
    Views
    8,926

    that dosen't seem to work..... I need to send the...

    that dosen't seem to work..... I need to send the varialbe that I created using malloc
  5. Thread: File Copying

    by jerez_z
    Replies
    0
    Views
    1,011

    File Copying

    /*I have looked thorugh the file copying threads and not one appears to work for me. I have a file I have written using random access (several different structs of different sizes and types) and I...
  6. Thread: Files

    by jerez_z
    Replies
    11
    Views
    1,417

    ok nvm it worked with "r+" thanks alot guys

    ok nvm it worked with "r+" thanks alot guys
  7. Thread: Files

    by jerez_z
    Replies
    11
    Views
    1,417

    ok no writing with "r+" is happening

    ok no writing with "r+" is happening
  8. Thread: Files

    by jerez_z
    Replies
    11
    Views
    1,417

    hmmmmm I'm pretty sure you can read with "a+" but...

    hmmmmm I'm pretty sure you can read with "a+" but let me try "r+"...
  9. Thread: Files

    by jerez_z
    Replies
    11
    Views
    1,417

    I tried that (using fwrite with mode "a+")... it...

    I tried that (using fwrite with mode "a+")... it didn't apear to work
  10. Thread: Files

    by jerez_z
    Replies
    11
    Views
    1,417

    Files

    I have a file that requires updating..how do I delete a small part of the data in the file and then replace it with another chunk (of the same size)?
  11. Replies
    27
    Views
    8,926

    alright sweet. everything works good so far. Now...

    alright sweet. everything works good so far. Now how do I send this structure between functions?
  12. Replies
    2
    Views
    1,516

    ok thats cool.....

    ok thats cool.....
  13. Replies
    2
    Views
    1,516

    Global Variables

    Is it possible to declare a global variable from within a function?? Thanx
  14. Replies
    27
    Views
    8,926

    but I need to open it in random access mode

    but I need to open it in random access mode
  15. Replies
    27
    Views
    8,926

    ok another problem..... I'm having trouble...

    ok another problem..... I'm having trouble writing the headers struct to a file:



    fwrite(headers, sizeof(headers), 1, filePtr);


    I've opened the file with "w+" for a mode. but when I write...
  16. Replies
    27
    Views
    8,926

    sweet that works awesome. Your my idol :P

    sweet that works awesome. Your my idol :P
  17. Replies
    27
    Views
    8,926

    I use TCLite (its the one I have at school) and...

    I use TCLite (its the one I have at school) and here is the code I'm using:



    struct colHeads headers[20]; //*headers = malloc( colNum * sizeof *headers );

    FILE * filePtr;

    for (count2...
  18. Replies
    27
    Views
    8,926

    I changed it to .c and I still get the same error.

    I changed it to .c and I still get the same error.
  19. Replies
    27
    Views
    8,926

    Error

    struct colHeads *headers = malloc( colNum * sizeof *headers );

    This gives me an error:



    Cannot initialize 'colHeads near*' with 'void near*'
  20. Replies
    27
    Views
    8,926

    ok I think that makes sense

    ok I think that makes sense
  21. Replies
    27
    Views
    8,926

    so are those the easiest ways? cause they are...

    so are those the easiest ways? cause they are still pretty confusing
  22. Replies
    27
    Views
    8,926

    well thats cool, but maybe you could explain it...

    well thats cool, but maybe you could explain it just a little more?
  23. Replies
    27
    Views
    8,926

    User Defined Array

    How do I set the length of an array using a value from the user?



    struct colHeads headers[colNum];

    That dosen't work^.... Any ideas? Thanx.
Results 1 to 23 of 23