flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
mns
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 |
|||||||||||
![]() |
|
revolution
Use CreateFile with OPEN_ALWAYS
Then SetFilePointer,[handle],0,0,FILE_END Then WriteFile,[handle],... |
|||
![]() |
|
AsmGuru62
In addition: FILE_SHARE_READ alone will not allow to append, because appending is actually writing!
![]() |
|||
![]() |
|
mns
hey Thank you very much guys for quick and clear responses.I'v got the point.
can any one of you direct me to a good windows assembly(proberbly with FASM)tutorial? Thanx again. |
|||
![]() |
|
Enko
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. |
|||
![]() |
|
mns
thanx,
sorry to ask another one, Is there a way of search a sring in a text file using windows API? ![]() |
|||
![]() |
|
Picnic
mns wrote: please can someone tell me how to append data to a text file.not overwriting the content Hi, Check also here |
|||
![]() |
|
mns
Thanx!!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.