[closed] txt file creation

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
ZombieKnight
Posts: 243
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

[closed] txt file creation

Post by ZombieKnight »

Hi
How to create and modify .txt file?
I'm sure I saw it few months ago on wiki, can't find it now.
Thanks
Last edited by ZombieKnight on May 3rd, 2024, 7:08 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
User avatar
Celtic_Minstrel
Developer
Posts: 2271
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: txt file creation

Post by Celtic_Minstrel »

Wesnoth provides no facility for writing arbitrary files, only for reading them. There is a facility for writing arbitrary WML to disk in a fixed location though – look for PersistenceWML.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
ZombieKnight
Posts: 243
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: txt file creation

Post by ZombieKnight »

Poor, thanks
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Post Reply