MASM Assembly File I/O

I am trying to learn how to read/output to a file using just 32-bit intel assembly. I have tried hunting through the Art of Assembly pages and Google, but have yet to find some good example code for this. Perhaps I am not looking hard enough, but do any of you here have a file i/o library or maybe a link to a decent tutorial. (segmented or flat is fine)

I found a page that can do an open file dialog box, but reading through I notice references to libraries already written. http://win32assembly.online.fr/tut12.html
I would like to start from scratch if possible and have my file i/o be platform independent. (but still intel assembly)
http://www.masm32.com/

When using assembly, there is no such thing as "platform independent".
What Duoas said.
Also, it should be noted that opening a file is an operation which operates on the operating system (wow that's a lot of operating..). So, again, it can't be done without platform specific calls.
Topic archived. No new replies allowed.