Yoko

All sides of Injection
It is currently 2025-12-17 15:01:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2009-04-08 22:58:53 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Code:
var fl=file("C:\1.txt")

sub abs()

fl.open()
fl.WriteLn(UO.Journal())
fl.close()

end sub


как сделать что бы он не последнее слово записывал а весь Журнал??


Top
   
 Post subject:
PostPosted: 2009-04-08 23:35:28 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub main()
   var i, f = file( '1.txt' )
   f.create()
   f.open()
   for i = 0 to 99
      f.writeLn( uo.journal( i ) )
   next
   f.close()
endsub

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-09 00:46:15 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Гдето видил что бы он не перезаписывал файл а добовлял в конце файла новые записи, но уже не могу найти, там суть в одной строчке но найти не могу. и За одно не подскажите по другому скрипту. как мне присвоить perm2 слово "ДА" prem2=(да) много чего перепробывал не получается(


Top
   
 Post subject:
PostPosted: 2009-04-09 01:13:03 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
f.create() - эту строку сотрите :)

PS: perm2 = "ДА"

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-09 01:18:43 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Destruction wrote:

PS: perm2 = "ДА"


Большое спасибо, но не работает:(


Top
   
 Post subject:
PostPosted: 2009-04-09 03:16:21 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
viewtopic.php?t=3491&start=0

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-09 22:16:40 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Code:
line=UO.injournal(name)
per1=Trim(Right(UO.Journal(line-1),1))



     if val(per1) == per2 then

все равно не катит per2="да" но он почему не приравнивает их.


и по поводу лог файла, он почему то не добовляет новые записи. а заменяет.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited