5k3l3t0r Posted February 3, 2007 Posted February 3, 2007 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
yamraaj Posted February 3, 2007 Posted February 3, 2007 Which language do you want....Writefile will work only after file has been opened..Use CreateFile for getting handle first
human Posted February 3, 2007 Posted February 3, 2007 also use SetFilePointer to set start of write, for example if you wanna append text to file
5k3l3t0r Posted February 3, 2007 Author Posted February 3, 2007 sry, and tkx for answer me...the language is ASM.can you give me an example... please...bye5k3l3t0r
F0X Posted February 3, 2007 Posted February 3, 2007 suggest using google first but I'll post an example tomorrow
5k3l3t0r Posted February 3, 2007 Author Posted February 3, 2007 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
human Posted February 4, 2007 Posted February 4, 2007 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
starzboy Posted February 4, 2007 Posted February 4, 2007 keep track old old posts ...http://www.tuts4you.com/forum/index.php?showtopic=10949
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now