Re: saving an output file
"aeh" <aehinojosa@xxxxxxxxx> wrote in message
news:1119880440.507124.145530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Is there any way to save the output file to a user specified directory?
> I would like for the user to be able to select a directory and save the
> output file there.
Look at documentation about
javax.swing.JFileChooser;
javax.swing.filechooser.FileFilter;
> At the very least, is there any way to specify where
> the file is saved by writing it into the code. I know that in C++ you
> can specify where the file is created by doing something like this
> "C:\\mydir\myprogram.cpp" when you name the file. Does Java allow
> something like this?
Yes. By using "test.txt" you use the current directory. "C:\\mydir\\test.txt"
specifies the absolute filename.
Greetings, Leon.
.
Relevant Pages
- Re: File Parsing and Creating Error Report : using MS Access
... Generate error report where data violates validation rules. ... or die "Please specify the number of characters to examine ... or die "Couldn't open output file $filestem$group$fileext"; ... (microsoft.public.access.externaldata) - Re: function-sections and data-sections option in gcc
... Place each function or data item into its own section in the output file if the target supports arbitrary sections. ... Use these options on systems where the linker can perform optimizations to improve locality of reference in the instruction space. ... You will not be able to use gprof on all systems if you specify this option and you may have problems with debugging if you specify both this option and -g. ... (comp.lang.c) - Re: Snort custom logging via rule set?
... Snort custom logging via rule set? ... Use the "logto" option and specify an output file for particular ... > You get my point, I know you can send it to syslog and parse it from there, but i'd rather just make it log to a custom log file. ... (Focus-IDS) - Re: Snort custom logging via rule set?
... > 1) Use the "logto" option and specify an output file for particular ... Look for 'ruletype' in the snort.conf ... (Focus-IDS) - Re: saving an output file
... aeh wrote: ... Is there any way to save the output file to a user specified directory? ... can specify where the file is created by doing something like this ... (comp.lang.java.help) |
|