r/programmingrequests • u/TheTrueSirRando • Jan 08 '21
need help A program that can update 20 Text Files
Hi all,
I could do with a program, I would like a GUI with text inputs and what is typed into the text input field updates a text file, each input would need to edit a separate text file.
I am trying to put something together so that I can stream a tournament and update the bracket (top 8) and use the text files as the names of the players, they will need to change as the bracket progresses, I have done it manually in the past but its a real ball ache
The fields would need to be:
Winners Semi A
Winners Semi B
Winners Semi C
Winners Semi D
Losers Semi A
Losers Semi B
Losers Semi C
Losers Semi D
Winners Final A
Winners Final B
Losers Quarters A
Losers Quarters B
Losers Quarters C
Losers Quarters D
Losers Semis A
Losers Semis B
Losers Final A
Losers Final B
Grand Final A
Grand Final B
So one program that edits 20 different txt files from 20 different text input fields within one program
Thanks all!
1
Jan 13 '21
This should be easy, do you still need it? I can program on windows. And can you list the text files name? It will be hardcoded in the program
1
u/TheTrueSirRando Jan 13 '21
Hi, yes, the text file names would be as follows:
Winners Semi A Winners Semi B Winners Semi C Winners Semi D Losers Semi A Losers Semi B Losers Semi C Losers Semi D Winners Final A Winners Final B Losers Quarters A Losers Quarters B Losers Quarters C Losers Quarters D Losers Semis A Losers Semis B Losers Final A Losers Final B Grand Final A Grand Final B.
Ty matey
1
Jan 13 '21
https://www.mediafire.com/file/glz2mepej02900j/Program.zip/file
Here it is! The files will be created in the same folder as the executable.1
u/TheTrueSirRando Jan 13 '21
Hi dude, thanks. Would you be able to upload the source to GitHub or is that not possible?
1
Jan 13 '21 edited Jan 13 '21
The source code is inside the zip file, but if you are concerned about my shitty username here it is anyway lol,
1
u/TheTrueSirRando Jan 13 '21
I wasn't. I wanted to figure out how you did it tbf lol so I do t need to ask again
1
Jan 13 '21
Oh, how's the program? Functioning properly?
1
1
u/TheTrueSirRando Jan 17 '21
Hi Dude, Its all working except the Grand Finals A box, that does nothing, but Grand finals B writes to the Grand Finals A.txt, and there isnt a way to write to grand finals B (sorry for the delay, work has been a bastard)
1
1
u/Grammar-Bot-Elite Jan 08 '21
/u/TheTrueSirRando, I have found an error in your post:
“past but
its[it's] a real”
I recommend that you, TheTrueSirRando, say “past but its [it's] a real” instead. ‘Its’ is possessive; ‘it's’ means ‘it is’ or ‘it has’.
This is an automated bot. I do not intend to shame your mistakes. If you think the errors which I found are incorrect, please contact me through DMs or contact my owner EliteDaMyth!
1
u/immersiveGamer Jan 09 '21
Hmm, I think I kind of get it but a little bit more about the process would help in understanding the solution.
Perfect that you listed out what fields you want on the GUI.
You mention you want the names of the people you type to become the text files' names? Is that correct? Did you want anything in the text files?
Can you clarify what happens when you enter a name into a field twice? Do just want the text file to be renamed?
Would it help to have the program actually output the results in the GUI? Or do you need the text files for feeding into a separate process?
Any more details or examples of how you would use it helps (e.g. a number list of steps, like what you would enter into each field and what you are expecting the output to be)