[Dev-C++] passing the content of a string to a variable from
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: jose i. c. <ji...@fr...> - 2003-04-09 01:51:47
|
Greetings O SmartOnes!
I have the following c code:
char FileContent(char *file)
{
char fcontent(3000);
...
/*in here I grab the content of a text file */
...
return(fcontent);
}
int main(int argc, char *argv[])
{
char text[3000];
...
...
...
text = FileContent("temp.txt");
}
I can't get this to work. I've a bunch of places and I even tried to get
the pointers to no avail. I am new to c, but I am an expert programmer.
Any c help will be greatly appreciated.
thanks.
josé
|