hacker9116
hacker9116

Reputation: 45

File Reading/Writing vs DB Reading/Writing

Hi was just wondering if anyone could help me.

I have a program that writes out logs from other files to two different file depending on what the log contains (basically if its an error or not). My question is would it better to store these logs like i am (in a file) or in a DB.

Other information that might help:

Last question: When using a file is it better to write out each message one at a time or store them and then write a group of them out?

Any help would be great thanks.

Upvotes: 0

Views: 199

Answers (1)

TheWhiteRabbit
TheWhiteRabbit

Reputation: 15758

  1. With FILE I/O you need to implement all the Qos aspects like Concurrency, Transaction etc by your own to makesure the data inconsistancies

  2. With DB all those aspects are already taken care by the DB

Upvotes: 1

Related Questions