TudorSmith
Programmer
In my "Discography" application, the user selects a track from a list box, and the app plays the related MP3 file using a MediaPlayer control on the form. The MediaPlayer knows where the MP3 is located...cause I've hardcoded the path to read the D:\ drive.
Oops...silly me, I just realized some folks have two CD players (D:\ & E:\).
Perhaps I could store the details in a txt file (pretty much like a database), such that I can now have a menu option that allows the user to define their chosen location for the MP3 files. So that when the app is next opened, it interrogates the "Settings.txt" file, reads the location that the MP3's are stored, and always looks there for the files.
Q:, how do I use the "Open #1 for..." coding to actually amend a line in a file?
So....
d:\audio, Default Location
Would be changed to c:\program files\audio if the user changed the settings?
Any suggestions would be welcome
birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
Oops...silly me, I just realized some folks have two CD players (D:\ & E:\).
Perhaps I could store the details in a txt file (pretty much like a database), such that I can now have a menu option that allows the user to define their chosen location for the MP3 files. So that when the app is next opened, it interrogates the "Settings.txt" file, reads the location that the MP3's are stored, and always looks there for the files.
Q:, how do I use the "Open #1 for..." coding to actually amend a line in a file?
So....
d:\audio, Default Location
Would be changed to c:\program files\audio if the user changed the settings?
Any suggestions would be welcome
birklea birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!