User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 373,889 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,878 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 7 of 7
Search took 0.01 seconds.
Posts Made By: ctrohana
Forum: C Mar 6th, 2007
Replies: 12
Views: 1,609
Posted By ctrohana
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
Posted By ctrohana
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
Posted By ctrohana
Re: help me to read my data file:((

Ok thanks all..but actually my problem is not solving yet:(
Forum: C Mar 5th, 2007
Replies: 12
Views: 1,609
Posted By ctrohana
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
Posted By ctrohana
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
Posted By ctrohana
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
Posted By ctrohana
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...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 4:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC