Reading a text file with File Manager plugin

Started by coderjk on

Topic category: Help with modding (Java Edition)

Last seen on 01:19, 12. Jun 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Reading a text file with File Manager plugin

I am using the File Manager plugin to read the contents of a text file line by line.
I don't understand how to access the data in each line using the "string iterator".
Can anyone point me in the right direction?
I’m using MCreator 2023.1

Last seen on 20:22, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure how it works…
Tue, 09/12/2023 - 04:02

I'm not sure how it works either but I'm currently trying to figure it out, so either I'll get back to you if I figure it out or I'd really appreciate it if you let me know if you found anything before I did!!

Last seen on 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Line is a text ended with…
Tue, 09/12/2023 - 08:06

Line is a text ended with enter. 

From the name of this block i understand that it takes a file you choose and goes through each line in file in a loop from top to bottom giving you onr line at a time. 

Ps. I used 3 lines for this post. 

Last seen on 20:22, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Azzier  is there any way to…
Tue, 09/12/2023 - 22:27

@Azzier 

is there any way to specify a particular line you want to edit/replace in a .txt file with this procedure block, and if not what would this procedure block even be used for?

Last seen on 20:22, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Azzier Ah, ok well thank…
Wed, 09/13/2023 - 20:12

@Azzier

Ah, ok well thank you for the help anyways! 

I’ll go see about asking the creator at some point then!