Ok then. Got the pot of tea. Got the porridge. Got the cricket on.

Lets write the website generator then.

Not much time this week to work on this.

This morning I added the ability to get a list of all the files in a directory, which is surprisingly elegant in C.

I can also get a list of all sub directories and then the files within them.

I feel like this is the hard bit done, now i just need to read the files, parse them and write the output, which the code should already be done for.

I have some time tonight so hopefully ill get it done.

Follow

Oh I also added the ability to parse a setting file in a simple:

KEY=VALUE
KEY=VALUE
KEY=VALUE

format so I can add settings when needed. I also check to see if this settings file exists before doing the build of the website.

That will avoid problems I had in the last version.

· · Web · 1 · 0 · 0

This morning over a pot of tea I added the code that creates the directories for any output files but only if it is needed.

Whenever i deal with paths in C i am reminded of how usefull strchr() and strrchr() are!

Sign in to participate in the conversation
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.