vandan2 Posted July 29, 2011 Share Posted July 29, 2011 [b]Şu şekilde bir şey yapabilir miyiz ? Browse ekranından seçilen dosyanın içeriğine belirlediğimiz şeyler yazılacak. Yani browseden text , au3 vb şekilde bir dosya seçicez. 2. butona basıp textin en başına belirlenen yazıyı yazıcak. Böyle bir şeyi nasıl yapabiliriz ? [/b] Quote Link to comment Share on other sites More sharing options...
MostWanted Posted July 29, 2011 Share Posted July 29, 2011 $sDosyaYoluAl=FileOpenDialog("Dosya Seç", @DesktopDir, "Au3 Dosyası (*.au3)|Metin Dosyası (*.txt)" ) ;Dosyayı seçtiriyoruz. $sFilehandle = FileOpen($sDosyaYoluAl, 0) $oku="" While 1 $sLineText = FileReadLine($sFilehandle) $oku&=$sLineText&@CRLF If @error = -1 Then ExitLoop WEnd FileClose($sFilehandle) $yolagel=FileOpen($sDosyaYoluAl, 2) FileWrite($yolagel, "artık ne yazmak istiyosun bilmiyorum."&@CRLF&$oku) MsgBox(32, "tebrikler", "Valla da bu kadarcık!") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.