flat assembler
Message board for the users of flat assembler.
Index
> Windows > append data to a text file |
Author |
|
mns 31 Jul 2011, 10:45
please can someone tell me how to append data to a text file.not overwriting the content
for that i'v tried to open file like following, invoke CreateFile,FileName, FILE_APPEND_DATA,FILE_SHARE_READ,NULL,\ OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 but fasm has given following error undefine symbol pushd FILE_APPEND_DATA >I,m attaching the whole .asm file
Last edited by mns on 01 Aug 2011, 09:07; edited 1 time in total |
|||||||||||
31 Jul 2011, 10:45 |
|
revolution 31 Jul 2011, 10:51
Use CreateFile with OPEN_ALWAYS
Then SetFilePointer,[handle],0,0,FILE_END Then WriteFile,[handle],... |
|||
31 Jul 2011, 10:51 |
|
AsmGuru62 31 Jul 2011, 12:00
In addition: FILE_SHARE_READ alone will not allow to append, because appending is actually writing!
|
|||
31 Jul 2011, 12:00 |
|
revolution 31 Jul 2011, 15:26
AsmGuru62 wrote: In addition: FILE_SHARE_READ alone will not allow to append, because appending is actually writing! |
|||
31 Jul 2011, 15:26 |
|
Enko 31 Jul 2011, 16:44
for windows, the best asm tutorials are the iczelion's, but they are in masm.
http://win32assembly.online.fr/tutorials.html there is somewhere in the web, the fasm translation, but I don't thing you will have much problems translating masm to fasm, the important thing are the api calls. |
|||
31 Jul 2011, 16:44 |
|
mns 01 Aug 2011, 02:53
thanx,
sorry to ask another one, Is there a way of search a sring in a text file using windows API? |
|||
01 Aug 2011, 02:53 |
|
Picnic 02 Aug 2011, 13:44
mns wrote: please can someone tell me how to append data to a text file.not overwriting the content Hi, Check also here |
|||
02 Aug 2011, 13:44 |
|
mns 02 Aug 2011, 17:22
Thanx!!
|
|||
02 Aug 2011, 17:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.