Forum: C Mar 6th, 2007 |
| Replies: 12 Views: 1,609 Re: help me to read my data file:(( ooppss...sori
line 45 is
char *data2=(char*)malloc(strlen(data));
and looks ok, no error at all..i need you to help me how to get the result like this
data[0]=A11111 atol... |
Forum: C Mar 6th, 2007 |
| Replies: 12 Views: 1,609 Re: help me to read my data file:(( My code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#define EOL '\n'
#define N 100
void OpenFile(void); |
Forum: C Mar 6th, 2007 |
| Replies: 12 Views: 1,609 |
Forum: C Mar 5th, 2007 |
| Replies: 12 Views: 1,609 Re: help me to read my data file:(( Hi,
I already run the program:
char data[N];
FILE *dataptr;
unsigned int i,ii;
char *data2=(char *)malloc(strlen(data));
long k;
The error-->illegal initialization-->char *data2=(char... |
Forum: C Mar 5th, 2007 |
| Replies: 12 Views: 1,609 Re: help me to read my data file:(( Sorry guys, wrong post for my previous program..this is the right program:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#define EOL... |
Forum: C Mar 5th, 2007 |
| Replies: 12 Views: 1,609 help me to read my data file:(( Hi all,
I need ur help..
Actually I have to read the data file which containing character and digits. I need to converts some characters into digit.
The data file is... |
Forum: C++ Feb 28th, 2007 |
| Replies: 6 Views: 1,952 Enter string to the next line Hi guys,
I need ur help.
If I have character strings (data array file) as below:
X001234
X001345Y002323
X00142
X001567
How do i program, if I want to enter Y002323 to the next line? and how I can... |