I'm trying to read a single characted from a file using getc() function. Once I reach '/n' characted, I want to process the line.
My problem is that if the first line has more characteds than the next line, the resulting array contains characters from the first line at the end. For example, if...
Thanks Stefan.
Your sugestion worked fine with one modification - the line "PrintStream psOut = new PrintStream(fosOut);" had to be changed to "psOut = new PrintStream(fosOut);". Otherwise, to compiler comlained that the psOut was already defined.
Hi there,
I am fairly new to writing code in Java.
What I'm trying to do is to write a program which will read an input file, and then create a multiple output files, based on a control breaks (tags) in the input file. The output file names, will be derived from the control-break lines of the...
I currently have 2 web departamental intranet servers.
The second server is acting as a backup.
From our main corporate page, I would like redirect to the first server. If the first server is not available, I do not want to see the classic "HTTP 404 - File not found". Instead, I would like to...
Do I need to include any components with this function?
When I run the program I get the Compiler err: Sub or Function not defined.
I've placed the function definition in the module file.
How can I play a *.wav file along with displaying an error message.
Here is my code
If myvariable > 10 Then
' Play the *.wav file here
msgbox ("myvariable cannot be greather than 10")
End If
I have a C program (using MS Visual C++ development toolkit).
The program runs in DOS window on Win XP platform.
I wnat the C program to set and environment variable, so it is available to other DOS batch programs, which run in the same window (called by the C program).
When I use:
system...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.