Search found 7 matches

by fdaniii
17 Feb 2012 09:43
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

Code: Select all

What is the interface to the controller? A serial port?

no, i communicate with the microcontroller with an ethernet interface...
by fdaniii
17 Feb 2012 09:20
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

Code: Select all

Why not write an exe that reads one character and loops, without any tests to end the program. 

i need to restart the loop only when needed!! i cannot start the loop in continuous way....
by fdaniii
17 Feb 2012 07:48
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

A Java problem belongs on a Java Forum, not a DOS BATCH forum. It is not a java problem!!!!!! the program works fine whitout an input redirection file (works fine if i enter the "q" key or "return" in the command line promt!!)!!! If myinout.txt contains the following characters:...
by fdaniii
17 Feb 2012 03:35
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

i mean... is there a way to update the input stream? or... is there a way to keep opened the input stream?
by fdaniii
16 Feb 2012 10:55
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

This is my program (simplified), it is written in java... public static void main(String [] args) { // Some initialization InputStreamReader reader = new InputStreamReader (System.in); BufferedReader readInput= new BufferedReader (reader); do { // My istructions.... Wath my program do System.out.pri...
by fdaniii
16 Feb 2012 10:19
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

Re: redirection input

No bugs in my code... the program works fine if i call it normally from the command prompt with c:\>myprogram.exe and pass the input parameters whne required... the program terminate only if i insert the "q" char . The problem arise when i call the program with the redicetion input file...
by fdaniii
16 Feb 2012 09:33
Forum: DOS Batch Forum
Topic: redirection input
Replies: 16
Views: 16477

redirection input

Hi all, i'm new....on this forum.... my problem is: i written a dos program that interfaces with a microcontroller. The program has the following structure (in pseudocode): initialize some parameters; do { execute some operations; while(!input parameter is "q") It repeat the code until the...