PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: charlie on 27 November, 2004, 16:09:02

Title: txt files?
Post by: charlie on 27 November, 2004, 16:09:02
Hi,

is it possible to open a txt file and write in it which is not in the script folder?

For example, hub: C:\hub\script
and the txt file which i will open, read and write in is in C:\windrop\files\txt

I try it with file = "C:\windrop\files\txt\news.txt" but it don?t work


Title:
Post by: 6Marilyn6Manson6 on 27 November, 2004, 16:40:54
No it is not possible... txt file open only dir scripts or subdir ;)
Title:
Post by: ??????Hawk?????? on 27 November, 2004, 17:33:09
hi m8  

Yes  you can  read and write  to any text file  ..  

use the full path  in your   read  and  write  functions

??????Hawk??????
Title:
Post by: charlie on 27 November, 2004, 18:02:19
yes it work... by full path

C:\\Temp\\