Skip to content

Commit

Permalink
Checked text file was open before writing to it.
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneElseOSM committed Dec 11, 2013
1 parent 70e90ac commit 41aed1c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Notes01.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,16 @@ private static void process_notes_xml( Node root_node, String passed_display_nam
myGpxPrintStream.println( "<desc>" + comment_open_text + "</desc>" );
myGpxPrintStream.println( "<sym>" + passed_symbol + "</sym>" );
myGpxPrintStream.println( "</wpt>" );

}

if (( arg_out_txt_file != "" ) &&
( display_name_matches ))
{
myTxtPrintStream.println( note_id );
myTxtPrintStream.println( "==========" );
myTxtPrintStream.println( comment_open_text );
myTxtPrintStream.println( "" );
}

}
} // note
else
{ // !note
Expand Down

0 comments on commit 41aed1c

Please sign in to comment.