12-10-2013 02:49 AM
Hi guys,
I am facing a road block here.
I am currently using Create File (unwired file path) so that the user can input the file name "test.txt" to create the txt file. No problem here.
However, I want this newly created text file to be my file path to my Write to Spreadsheet File.
Please see attached photo.
Help ! Kudos and thanks !
Solved! Go to Solution.
12-10-2013 03:00 AM - edited 12-10-2013 03:05 AM
didnt work
12-10-2013 03:01 AM - edited 12-10-2013 03:04 AM
Hi poker,
two ways:
Either close the file to get the path or use the file dialog express VI instead...
@Koen:
When the path is provided as "a:" (as is in the given example) then WriteSpreadsheetFile will give an error or does not provide the functionality as requested...
General hint:
Using WriteSpreadsheetFile is a quick way to write CSV files, but has the disadvantage of not providing error I/O connections. And you can't prevent error dialogs generated inside this function... It's (most often) quite easy to use simple file functions in conjunction with ArrayToSpreadsheetString!
12-10-2013 03:02 AM
12-10-2013 03:05 AM
12-10-2013 03:10 AM
12-10-2013 03:20 AM
Thank you for the input guys.
I have solved it using Build Path.
This is how I did it:
Prompt user input. Output string to the Build Path. The appended path string goes to the file path of Create File. I also create a local variable of the appended path string and it goes to Write to Spreadsheet File.
There you go. Thank you and kudos !
12-10-2013 03:22 AM
12-10-2013 03:29 AM
12-10-2013 08:01 AM
Hi,
Cause the write to spreadsheet is inside a while loop and many other case structures. So I guess it is easier to just have a local variable to do the job.