Posted February 3, 200718 yr hi all,i have a prob...i need to write a text line to an existing .txti try WriteFile but nothing...i think my prob is geting the handle of the .txt filecan someone help me?by all5k3l3t0r
February 3, 200718 yr Which language do you want....Writefile will work only after file has been opened..Use CreateFile for getting handle first
February 3, 200718 yr also use SetFilePointer to set start of write, for example if you wanna append text to file
February 3, 200718 yr Author sry, and tkx for answer me...the language is ASM.can you give me an example... please...bye5k3l3t0r
February 3, 200718 yr Author tkx, but i solved my prob... i try to send you a message but i get this error:-You are not allowed to use the messenger feature on this board-do you know why???bye 5k3l3t0r
February 4, 200718 yr probably you are on trial, and not yet full memberexample what for? wanna know what api does? www.msdn.com invoke CreateFile,o file_name,GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_ARCHIVE,0 mov file_handle,eax invoke WriteFile,file_handle,eax,ecx,o buff,0 invoke CloseHandle,file_handle
February 4, 200718 yr keep track old old posts ...http://www.tuts4you.com/forum/index.php?showtopic=10949
Create an account or sign in to comment