07-11-2012 12:26 AM
Hi,
I have a quick question.
I am writing a program that generates many files such as voltage data, resistance data etc.. I want the user to be able to specify just the path, and my program should name the files automatically.
For example if the user specfies the path "C:\measurements" where he wants all the files stored, my program should create the files Voltage.csv, Current.csv, Resistance.csv etc in that path.
I am using write to spreadsheet. The problem is when I run it, I cant just specify a path alone in the dialog box that pops up. I have to specify the filename too.
Even if I do manage to obtain just the path value, how do I append my various file names to it? I would create the filename as a string which is in a pink color. But the file path datatypes are different having a dark blue-green color.
How do I get about this?
Any help will be graetly appreciated.
Thank You
Solved! Go to Solution.
07-11-2012 12:33 AM
Hi,
make a right clik on a path control, and change the properties to enforce user to choose a folder and not a file :
Best Regards,
07-11-2012 12:35 AM
Hi Ramses,
Thank you for the info.
I did try that, but how do I create my own file names as string data type and append it to the path?
07-11-2012 12:46 AM
Hi,
use the "build path" :