Question about ifstreams efficiency
I want to make a scripting system that reads from a txt file and acording to that file's contents it changes the behavior of the object.
I have the system worked out in my mind but i need to know, for the sake of efficiency, how am i suposed to do this?
I was thinking about having an ifstream object inside all my classes objects, and then i could read that file every time the game loop repeated, but i dont know if this is efficient or if it will make my game slow at some point.
so help me here, are fstreams efficient enought to read/write from them during the execution of a program like a game??