Reading a text file from a WoW addon menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    kixer's Avatar Master Sergeant
    Reputation
    34
    Join Date
    May 2010
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading a text file from a WoW addon

    Is it possible to read a text file from WoW addon? Does it have to be in xml format or something? I know I don't have access to I/O. I just have a file that is in some format for historical reasons and I'd like to use it in game.

    Reading a text file from a WoW addon
  2. #2
    Multitask's Avatar Contributor

    Reputation
    158
    Join Date
    Jan 2008
    Posts
    1,112
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is vague... lua can read .txt but idk if the function is allowed in wow. you only want to look at it in wow? why not just tab out then... more info on what you want to be would be helpful

  3. #3
    kixer's Avatar Master Sergeant
    Reputation
    34
    Join Date
    May 2010
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Airwave- View Post
    this is vague... lua can read .txt but idk if the function is allowed in wow. you only want to look at it in wow? why not just tab out then... more info on what you want to be would be helpful
    Lua can, but lua IO is blocked in WoW. I've already tried. What I need: I have an old kinda script that I read in lua, parse it and do actions based on it. I don't just want to read it. In programming section -> read means read file into memory

    The workaround is of course obvious, I include the script in the lua script as a string...
    Last edited by kixer; 10-23-2010 at 10:42 PM.

  4. #4
    kixer's Avatar Master Sergeant
    Reputation
    34
    Join Date
    May 2010
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by InkoP View Post
    Try opening the file with mozilla firefox if the file is an XML file, otherwise try it with notepad but that will probably result in alot of random codes.
    But give it a shot with mozilla firefox viewer of XML files.

    Yours
    InkoP
    I really don't know if you understood what I wanted. I wanted to be able to read programmatically a text file into my addon. Not any addon that you can download on curse.com, but my own addon that I was writing. I needed to open the file and read it's content to memory. Not to read it with my eyes.

    Edit: Can I somehow lock this thread? I don't need this anymore and I know that it can't be done the way I wanted.
    Last edited by kixer; 10-25-2010 at 08:38 AM.

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2011, 10:37 AM
  2. How do I get a file from Maya into WoW?
    By hp94 in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 03-05-2010, 08:14 AM
  3. VB 2008; How to add text from text file to combobox
    By Flame_Warrior in forum Programming
    Replies: 9
    Last Post: 07-14-2009, 03:58 AM
  4. [HOW TO] Read a text file (.txt) to a textbox
    By Ebonesser in forum Programming
    Replies: 0
    Last Post: 06-19-2009, 05:22 PM
  5. Sync WoW Addons & Config files between 2 computers.
    By Dastin in forum World of Warcraft Guides
    Replies: 6
    Last Post: 02-03-2009, 07:12 PM
All times are GMT -5. The time now is 07:06 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search