| | |
File Handling in C
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2006
Posts: 1
Reputation:
Solved Threads: 0
Hi all,
I have a problem in handling files through C.
here is the problem im having:
i will query the database (for instance consider employees table )
for empno,ename,job,salary fields.The query returns me some 100 of rows. now i need to place them in a file in row wise pattern as they exist in the database.
now , if any row is updated in the database i need to update the same row in the file . also if any row is deleted i need to remove the same row in the file , and if any new row is inserted into the data base i need to insert the row in the file.
can any one suggest me any method to do this .
The performance is and main criteria(i mean time to do file operations. )
please help me in this regard,
thanks in advance,
Trinath Somanchi,
Hyderabad.
I have a problem in handling files through C.
here is the problem im having:
i will query the database (for instance consider employees table )
for empno,ename,job,salary fields.The query returns me some 100 of rows. now i need to place them in a file in row wise pattern as they exist in the database.
now , if any row is updated in the database i need to update the same row in the file . also if any row is deleted i need to remove the same row in the file , and if any new row is inserted into the data base i need to insert the row in the file.
can any one suggest me any method to do this .
The performance is and main criteria(i mean time to do file operations. )
please help me in this regard,
thanks in advance,
Trinath Somanchi,
Hyderabad.
Can you show us an attempt at a solution, rather than just asking the question again on a different forum or two?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- problems with reading random access line from a file (C++)
- C File handling - search within file without reading content? (C++)
- File-based Database Api (C++)
- File Handling Help NEEDED (PHP)
- PHP file handling (PHP)
- problem with convert jumbled text file to unjumbled text file (C)
Other Threads in the C Forum
- Previous Thread: help understanding how this program works
- Next Thread: strocc function
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays asterisks binarysearch calculate changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv feet fgets file floatingpointvalidation fork forloop framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide include incrementoperators input intmain() iso kernel keyboard kilometer km lazy license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft mqqueue number oddnumber odf opensource openwebfoundation overwrite owf pause pdf performance pointer posix probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential single socket socketprogramming standard string systemcall testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi






