News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Writing To a File

Started by nathanpc, September 25, 2009, 04:53:31 PM

Previous topic - Next topic

nathanpc

Hello,
I'm learning Assembly and i want to know how i can write some lines in a file(*.txt).

Thanks,
Nathan Paulino Campos

jj2007

Just search the forum or the masm32\examples folder for WriteFile.

PBrennick

Nathan,

To ampliify on JJ's answer; in win32.hlp study these APIs:

CreateFile
WriteFile
ReadFile
SetEndOfFile
SetFilePointer

This is the minimum that you will need to know. For more sophisticated file operations such as CopyFile, etc. search for FileFunctions in that same help file.

Paul

The GeneSys Project is available from:
The Repository or My crappy website

RuiLoureiro

Nathan Paulino Campos,
         Tens aĆ­ uma boa ideia do PBrenick.
         (You have a PBrenick good idea)
Rui

nathanpc

Thanks for all!

Aleluia! Um brazuca aqui! :)

dedndave

QuoteAleluia! Um brazuca aqui!

i think he said we are all crazy in here

nathanpc

Quote from: dedndave on October 01, 2009, 11:40:42 PM
QuoteAleluia! Um brazuca aqui!

i think he said we are all crazy in here
Hahahahahahahaha :lol
I said that he is the first brazillian that i found here!  :U

PBrennick

It is an interesting dialect of Espanol, doesn't translate well, except for Aleluia! and aqui!.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

BlackVortex

Well, they speak portuguese in Brazil, no ?

nathanpc

We speak portuguese here, only portuguese and the word "brazuca" it's the same of brazillian.

Thanks!