Seems like i’ve been getting stumped everywhere lately and most things i can find throughout my book but some i cannot like so:
I’m trying to have a JOptionPane showinputdialogue show and when i enter a string like “hello” it’ll write to hello.txt and find a certain line and write to that line hello.txt and i can also type “awesome” and it’ll write to that one on the same line that i had for hello.txt but no success so far. writing to files/strings are my biggest problem i can not overcome yet and they stump me everytime.
So in psuedocode i’m trying to make it do this:
If button clicked
open JOptionPane.showinputpane
type file name without extension
locate file with extension .txt
change "hi=1" in file to "hi=2"
close JOptionPane
If someone can kinda explain what to do or a link/tutorial/book something that’ll solve me fear of strings and file/disk writing, it’d be greatly appreciated.