Search found 7 matches

by zxretrosoft
Sat May 23, 2020 5:37 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

Thank you!
Unfortunately not yet.

E.g. save string:
"Valašské Meziříčí"

is still a problem.
by zxretrosoft
Sat May 23, 2020 12:58 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

Yes, true, I was looking in the wrong directory :roll:

Thank you so much for the important help for me!!!
by zxretrosoft
Sat May 23, 2020 4:48 am
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

Thank you, I understand :nyu: But I still have "test_output.txt" empty after running the code It seems that the values do not write to it. I have this: local x = {} local lines = {} for line in love.filesystem.lines("test.txt") do table.insert(lines, line) end for i = 1, string.len(lines[1]) do if s...
by zxretrosoft
Fri May 22, 2020 6:58 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

Thank you so much, guys! I can't SAVE it yet. Apparently I'm doing something wrong :neko: I have a text file (CSV), example: 513911; 276871 123456; 158947 The numbers (first line for example) I get into the arrays: x(1)=513911 x(2)=276871 local x = {} local lines = {} for line in love.filesystem.lin...
by zxretrosoft
Fri May 22, 2020 1:53 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

And one more question please :crazy:

And now, I have data in the field, e.g.

lines[1] = 150
lines[2] = 200
lines[3] = 350
...

How to make SAVE to file?

Thank you so much again! :nyu:
by zxretrosoft
Thu May 21, 2020 3:29 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Re: Load from file

Thank you so much! It seems to be working properly! :awesome: Just a little more question, please. My native language uses hooks, commas, rings ... (for example: kůň, třmen, důrazně...) When I accidentally load a word from CSV / TXT, it gives an error: main.lua: 8 UTF-8 decoding error: Ivalid UTF-8 ...
by zxretrosoft
Thu May 21, 2020 7:24 am
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1480

Load from file

Hello LÖVE friends, I'm new here and I'd like to ask. I can't figure it out experimentally ^^ I need to make a simple script to load CSV so that I can then read it into the arrays. A small example of how it works in PureBasic e.g. ReadFile (0, "c: \ test.csv", # PB_Ascii) i = 0 While Not Eof (0)    ...