Do somebody know how can i put the content of a file to a varable?
And if i can, how can i write that variable to a text box?
Do i use a \v[id], or i need to use something else?
Any code that may help is of a great help!
I am getting a error that i don't know what it is.
I get this error for pretty much anything that i try.
Anything that i can try to solve this error?
Sorry...
Try this at the end:
$game_variables[ID] = file
ID = Number of Variable
Sorry, I'm away from my computer, I'll test it later and edit this message.
I am not understanding what am i doing wrong.
This time, i can put the files "content" in a variable, but instead, i get this in the variable
"#<File:0x8f218d8>"
Anything that i can do?
This error are starttiing to get annoying..
{
File.open('q.txt', 'r') do |file|
@lines.push line
end
$game_variables[1]=@lines[0]
}
I stiill don't get anything...
Am i even using the rigth scritp?
Can some body let a demo scritp so i can know what is wrong with it?