TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Added file operations to Fexl

2 pointsby fexlabout 13 years ago

1 comment

fexlabout 13 years ago
This was very straightforward, and I'm amused I didn't do it sooner. The new "file.c" is just 113 lines, and includes wrappers for fopen, fgetc, fputc, and fwrite, along with a handy file_string function which reads the entire content of a file into a single string, using the very efficient buf.c technique.