Keil™, An ARM® Company

Discussion Forum

can C Program read in Text file?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Zhong shen
Posted
14-Jan-2009 03:05 GMT
Toolset
C51
New! can C Program read in Text file?

I want to ask whether can C Program for micro controller read in text file? If yes how do I do it? I have read some article that says that the program need to include stdio.h to read the file. But after I added that into my program, I still can start with this:

File * hfile;

Something like this and it prompt me an error!

Read-Only
Author
Jon Ward
Posted
14-Jan-2009 07:00 GMT
Toolset
C51
New! RE: can C Program read in Text file?

What hard disk do you have connected to your 8051 microcontroller? How is it interfaced (IDE, ATA, SCSI, SATA)? Where did you get the file I/O library that you plan to use?

Jon

Read-Only
Author
Andy Neil
Posted
14-Jan-2009 07:23 GMT
Toolset
C51
New! RE: can C Program read in Text file?

Yes, of course 'C' programs in general can do file handling!

The big question is not about the program, but about the hardware: what hardware is used to store your files, and how is this hardware connected to your 8051?

See: http://www.keil.com/forum/docs/thread13856.asp

Next Thread | Thread List | Previous Thread Start a Thread | Settings