|
|||
|
What commands are available
What are the commands that are available to read text files in C programming language? If someone could give me the usage of these commands also I could get a detailed idea on the same.
|
| Sponsored Links |
|
|||
|
Have a file pointer and open the file using fopen in read mode denoted by r+. Check and exit if file pointer is equal to NULL since it means file not found. If file pointer not equal to NULL then read the file using fgets function.
Try the above logic and let me know if you get struck. I will help you out. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Communication Commands in UNIX | caradoc | Linux | 0 | 12-12-2006 02:57 AM |
| Windows XP commands | sanereddy | Windows | 1 | 12-11-2006 08:21 PM |
| Unix Commands In Windows 2003 | jennifer99 | Windows Server Tutorials | 0 | 07-05-2005 02:36 AM |
| Quarterly ASCII posting of Caldera (SCO) OpenUNIX 8 FAQ | Boyd Lynn Gerber | Tech FAQ | 0 | 04-25-2004 10:11 PM |
| vi editor FAQ (Frequently Asked Question List), Part 1/2 | E. Larry Lidz | Tech FAQ | 0 | 04-19-2004 12:02 AM |