blob: b10375c8b0329f3a51b6244d4b9f18b274976d07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <knob/file.h>
#include <knob/user.h>
void main(const char *path) {
struct file *f = open_file(path);
if (!f) {
tell_user_sz("Couldn't open file.\n");
return;
}
char buf[] = { '\0', '\0' };
while (read_from_file(f, 1, buf))
tell_user_sz(buf);
tell_user_sz("\n");
close_file(f);
}
|