The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: nathanpc on September 25, 2009, 04:53:31 PM

Title: Writing To a File
Post by: nathanpc on September 25, 2009, 04:53:31 PM
Hello,
I'm learning Assembly and i want to know how i can write some lines in a file(*.txt).

Thanks,
Nathan Paulino Campos
Title: Re: Writing To a File
Post by: jj2007 on September 25, 2009, 06:03:17 PM
Just search the forum or the masm32\examples folder for WriteFile.
Title: Re: Writing To a File
Post by: PBrennick on September 26, 2009, 02:18:04 PM
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

Title: Re: Writing To a File
Post by: RuiLoureiro on September 26, 2009, 02:29:39 PM
Nathan Paulino Campos,
         Tens aĆ­ uma boa ideia do PBrenick.
         (You have a PBrenick good idea)
Rui
Title: Re: Writing To a File
Post by: nathanpc on October 01, 2009, 11:39:18 PM
Thanks for all!

Aleluia! Um brazuca aqui! :)
Title: Re: Writing To a File
Post by: dedndave on October 01, 2009, 11:40:42 PM
QuoteAleluia! Um brazuca aqui!

i think he said we are all crazy in here
Title: Re: Writing To a File
Post by: nathanpc on October 02, 2009, 12:46:28 AM
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
Title: Re: Writing To a File
Post by: PBrennick on October 02, 2009, 12:54:34 AM
It is an interesting dialect of Espanol, doesn't translate well, except for Aleluia! and aqui!.

Paul
Title: Re: Writing To a File
Post by: BlackVortex on October 02, 2009, 01:05:43 AM
Well, they speak portuguese in Brazil, no ?
Title: Re: Writing To a File
Post by: nathanpc on October 02, 2009, 01:07:23 AM
We speak portuguese here, only portuguese and the word "brazuca" it's the same of brazillian.

Thanks!