Search:

Type: Posts; User: akerman

Search: Search took 0.01 seconds.

  1. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    I had to add getchar() at the end of writeAll()...

    I had to add getchar() at the end of writeAll() however all the function work the way I wanted it to, So THANK YOU very much, thanks for your time and help, really appropriate it.
  2. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    basically when the new function is applied it...

    basically when the new function is applied it does not write to a file and like before it does not return to previous function... There must be some easier way just to edit the delete function and...
  3. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    the new function does not write to the file, at...

    the new function does not write to the file, at least its not shown in the file shouldn't it be creating another file and then writing to it?
  4. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    I'm sorry for that but I have sorted it somehow...

    I'm sorry for that but I have sorted it somehow it was just the array type which somehow wasn't correct. Now I'm trying to sort out this delete function, however I'm trying to work of the same...
  5. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    12233

    12233
  6. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    I have created another function and the looks...

    I have created another function and the looks like this now but it still does not work...


    VOID writeALL(void) {
    FILE *fp;
    fp = fopen("stockdb.txt", "r");

    char c;
    struct stock stk1;
  7. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    hi again, I have left delete function for the...

    hi again, I have left delete function for the end. However I'm trying to sort my other function which is for displaying all records from file but somehow I'm getting an error and not sure why...
    ...
  8. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    I would say that I need another function for...

    I would say that I need another function for deleting and it would be almost the same as the writeAll() how every I'm not sure how it suppose to be constructed...
  9. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    adak if you see this post please help me out. I...

    adak if you see this post please help me out. I have tested the program and now it adds records and I can change them however delete function does not delete records from file but it just...
  10. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    i have added the code you gave me but in the file...

    i have added the code you gave me but in the file it just shows this... , , , 0
    , , , 0
    not sure why?
  11. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    Hi, again. I have added what you gave me however,...

    Hi, again. I have added what you gave me however, the program still does not delete or edit any of the records and I'm not to sure why... I have added writeAll function at the end of add edit and...
  12. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    one more question sometimes I'm trying to open...

    one more question sometimes I'm trying to open the file and when the program is running I cannot do it. Are there any chances of making it available when program is running?
  13. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    well I'm trying to have as many records as...

    well I'm trying to have as many records as possible but in c you can only have limited so I'm aiming at around 1000 which I already specified in the code. The main problem is that some of the...
  14. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    I changed my idea and the thing is I haven't...

    I changed my idea and the thing is I haven't changed a lot but the program works sometimes fine and sometimes it does not work... I have tried to test it and I just finishing the bit for adding but I...
  15. Thread: stock program

    by akerman
    Replies
    27
    Views
    2,976

    stock program

    Can someone help me and maybe adapt the code, I'm trying to create a small program to act like a database. I need to add edit and delete files I have done so but it doesn't work properly can I have...
Results 1 to 15 of 15