I have solved it! I removed the sdl_pollevent and linergba and sdl_flip commands from the loops and used settextbuf and now it works super fast.
Haha, Yeah, I knew it must have been something like that. Because reading and writing alone was real fast. You won't even need a real progress-bar for 7 seconds

(B.T.W you probably won't even need the settextbuf because my guess is it will be just as fast without them)
I would still advice you to look at some alternative-storage method in the future. For now it will work but the method Carver413 suggested looks much more stable. My game-programming knowledge is practically zero but my guess is that he has a lot more experience in that area.
For now... you can sleep tight... Good night...
