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...
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
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...
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...
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.