|
| |||||||||
| Tags: buffer, bufferedinputstream, content, input, java, javaio, output, programming language |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Content of BufferedInputStream
Hello, I have small query, I want to know how to display the contents of a BufferedInputStream. Quote:
Quote:
Last edited by Aaliya Seth : 28-01-2010 at 02:20 PM. |
|
#2
| ||||
| ||||
| Re: Content of BufferedInputStream
Hi If you want to read the contents of the file, just follow this Quote:
Quote:
Quote:
|
|
#3
| |||
| |||
| Re: Content of BufferedInputStream
Hello, I tried bis.read function () but it can not read my file, I think the problem is that writing is not made or every time I write a character, it is overwritten by the next. Does anyone have an idea about the working principle of the function bis.write () or a possible cause to my problem? Thank you. If there is any alternative method to read the content then please do post back. |
|
#4
| ||||
| ||||
| Re: Content of BufferedInputStream
Hello, I think that you have not flushed your data, that is have you used the following method in your code. Quote:
Quote:
|
|
#5
| |||
| |||
| Re: Content of BufferedInputStream
Hello, I have not understood your question but here is the code I use Code: int i, j =0;
while ((i = bis.read()) != -1) {
while(fn == false)
{
if (tab[j][j] ! = I)
{
j + +;
}
else
{
fn = true;
bis.write(tab[j][j+1]);
bis.flush();
}
}
}
BufferedInputStream bis1 = new BufferedInputStream(new FileInputStream(StrComp));
int k = 0;
while ((k = bis1.read()) != -1) {
bis1.read();
} |
|
#6
| |||
| |||
| Re: Content of BufferedInputStream
Hello, Well I assume you have two files myfile and myfile2. Quote:
Quote:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Content of BufferedInputStream" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Content blocker blocks content on certain sites with Opera | GiveNTake | Technology & Internet | 5 | 21-06-2011 08:30 AM |
| How to use CSS content boxes | Botan | Software Development | 1 | 08-01-2011 12:18 PM |
| How to generate content with CSS | Eshita The Techie | Software Development | 5 | 08-01-2011 11:54 AM |
| Content of the same cell | ISAIAH | Software Development | 5 | 03-02-2010 02:50 AM |
| WirelessHD(TM) Announces Publication of Wireless DTCP Content Protection Specification for High Definition Content | Jerome | Web News & Trends | 1 | 27-08-2008 02:21 PM |