Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. murdCa

    Convert txt file to binary

    Salem, I'm kinda off of what I want to do... In my previous post I probably should've written.... I have two files...File1 and File2, both txt files. I want to convert both of them to binary .bin file1.bin and file2.bin. I want to append file2 to file1. I understand the way that should go...
  2. murdCa

    Convert txt file to binary

    Salem, Thanks a lot. I'm gonna try to work this out and let you know how it goes. Have a good day, PS: I'll probably post the whole code before the end of the day... DM
  3. murdCa

    Convert txt file to binary

    dlk thanks a lot... Here is the code that I have... Please help... #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct human HUMAN; struct human { char name[50]; char gender[10]; int age; }; int main(void) { char c[50],tmpage[8]; FILE *file; HUMAN...
  4. murdCa

    Convert txt file to binary

    Ok, I see that the problem stays there... If you don't mind email me and I'll send you the source code. dmuran7544@aol.com Thanks in advance, DM
  5. murdCa

    Convert txt file to binary

    Salem, I don't expect you to believe this but my code before submit does look like you pointed out: for(i=0, j=0 ; c[i]!='\t' ; i++, j++) At preview it changes to for(i=0, j=0 ; c!='\t' ; i++, j++) I tried going around and playing with it and honestly I don't know what I'm doing wrong. The...
  6. murdCa

    Convert txt file to binary

    Salem, I tried and still looks the same. Probably I'm doing something wrong I'm not aware off... Please let me know what's the problem or you can just copy and paste the code and run it, looks just fine when I do that(not italics). Thanks, DM
  7. murdCa

    Convert txt file to binary

    Can someone please help me with converting txt file to binary. I have code that nicely opens the txt file reads it and displays it on the screen but I have problems trying to convert that txt file to binary and then appending new lines to it. Can someone please look at it and let me know how to...

Part and Inventory Search

Back
Top