RES: [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: Daniel K. O. <dan...@ya...> - 2003-04-09 02:21:55
|
A good start is to learn the C sintax. Try this tutorial: http://www.geocities.com/tom_torfs/cintro.html (the best C-quick-tutorial I've ever seen) Daniel K. O. Only ask questions with yes/no answers if you want "yes" or "no" as the answer. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-an swers.html > -----Mensagem original----- > De: dev...@li... > [mailto:dev...@li...]Em nome de jose isaias > cabrera > Enviada em: terça-feira, 8 de abril de 2003 22:52 > Para: dev...@li... > Assunto: [Dev-C++] passing the content of a string to a variable from > > > > 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é > |