Problem in reading records
Hi Gurus,
I have to read the following data into my internal table by splitting at | into workarea.
800|ZIXBSVCREQ|47114711|L2|FB2FFF5916C299489D0613840D4ED507|ZIXDSVCREF|20080502|00000000|FAX|47114711|20070312||
800|ZIXBSVCREQ|80004711|L2|7E9C31636213D44688EBD6593D633D53|ZIXDSVCREF|20060502|00000000|FAX|80004711|20080312|89224444|
800|ZIXBSVCREQ|90004711|L2|E777FD51E6798449977005A20C754B30|ZIXDSVCREF|20070502|00000000|FAX|90004711|20060312||
If the last field value is blank, it move the | into the workarea and so into the internal table.
How to avoid the copying of | into the workarea and internal table?
Please reply soon.
Regards,
Rahul
Put a check before moving the value to the table like:
split '800|ZIXBSVCREQ|47114711|L2|FB2FFF5916C299489D0613840D4ED507|ZIXDSVCREF|20080502|00000000|FAX|47114711|20070312||'
into wa-fdl1
wa-fld2
wa-fldn at '|'.
perform zinitial using :
wa-fdl1,
wa-fld2,
wa-fldn.
append wa to itab.
form zinitial using p_fld type c.
if p_fld = 'I'.
clear p_fld.
endif.
endform.
Regards,
Joy.
Similar Messages
-
Problem with READ Statement in the field routine of the Transformation
Hi,
I have problem with read statement with binary search in the field routine of the transformation.
read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
Code in the start routine
select source accno end_dt acctp from zcam_o11
into table it_zcam
for all entries in source_package
where source = source_package-source
and accno = source_package-accno.
if sy-subrc = 0.
delete it_zcam where acctp <> 3.
delete it_zcam where end_dt initial.
sort it_zcam by surce accno.
endif.
field routine code:
read table it_zcam with key source = source_package-source
accno = source_package-accno
binary search
transportin no fields.
if sy-subrc = 0.
RESULT = 'Y'.
else.
RESULT = 'N'.
endif.
this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
this field i am using in the report filter.
please let me know if anybody has the soluton or reason for this strage behaviour.
thanks,
Rahim.i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
1. is the key of zcam_o11 source and accno ?
2. you need to get the sortout of if endif (see code below)
select source accno end_dt acctp from zcam_o11
into table it_zcam
for all entries in source_package
where source = source_package-source
and accno = source_package-accno.
if sy-subrc = 0.
delete it_zcam where acctp 3.
delete it_zcam where end_dt initial.
endif.
sort it_zcam by surce accno.
field routine code:
read table it_zcam with key source = source_package-source
accno = source_package-accno
binary search
transportin no fields.
if sy-subrc = 0.
RESULT = 'Y'.
else.
RESULT = 'N'.
endif. -
Problem in reading data if field in database is Unique const
Hi All,
If a field is unique constraint and if it allows nulls (i.e. nullable) then there is problem in reading the data for display and even updating that record when application is running in JBoss 3.2.3 (this works fine in Weblogic 8.1) can any one tell me what changes should be made to avoid this problem or any other solutions.
Thanks in advance
Mallikarjuan Budur.I'm confused.
If a field is unique constraint, that means the field must have a value that exists in some other table, and is unique within the current table, right? If that's the case, then how can you allow nulls? -
Performance problem with selecting records from BSEG and KONV
Hi,
I am having performance problem while selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
Regards,
PrashantHi,
Some steps to improve performance
SOME STEPS USED TO IMPROVE UR PERFORMANCE:
1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
5. Avoid using nested SELECT statement SELECT within LOOPs.
6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
7. Avoid using SELECT * and Select only the required fields from the table.
8. Avoid nested loops when working with large internal tables.
9. Use assign instead of into in LOOPs for table types with large work areas
10. When in doubt call transaction SE30 and use the examples and check your code
11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
12. Use "CHECK" instead of IF/ENDIF whenever possible.
13. Use "CASE" instead of IF/ENDIF whenever possible.
14. Use "MOVE" with individual variable/field moves instead of "MOVE-
CORRESPONDING" creates more coding but is more effcient. -
Problem in displaying records in multi record block
Hi all,
I have a problem in displaying records in a multi record block in a form.
I have 1 control block and 1 data block(multi-record block).
Control block has one item CUSTOMER-ID. Data block has many other items related to customer.
when a value is entered in customer-id text item, all the relavant details should be displayed in the data block.
but, the records are overlapping in the same line in the data block, actually they have to be displayed one record per one line.
The code is,
IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
FOR C1 IN C
LOOP
:XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
:XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
:XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
:XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
:XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
:XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
END LOOP;
Please help me out..
Thanks in advance!
SumanHi Suman
IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
first_record;
FOR C1 IN C
LOOP
:XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
:XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
:XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
:XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
:XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
:XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
next_record;
END LOOP;
Try this. you are trying to show all the records in same line. so its overlapping.
Thankyou
[email protected] -
Hi All,
I have a requirement to read records from an excel to an internal table.I am using FM
KCD_EXCEL_OLE_TO_INT_CONVERT to read excel.
My problem arises when the program comes across a cell which contains some formulae assigned to it.
The FM does not read the value in the specified cell and throws a runtime-error.
Please help me out .
Thanks and regards
Dinesh beheraHi,
Try this one.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = v_file
i_begin_col = 1
i_begin_row = 2
i_end_col = 11
i_end_row = 10
TABLES
intern = it_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*looping the table
LOOP AT it_excel INTO wa_excel.
*coloum wise diffrensiate the internal table data
CASE wa_excel-col.
WHEN '0001'.
wa_input-tcode = wa_excel-value.
WHEN '0002'.
wa_input-vendor = wa_excel-value.
WHEN '0003'.
MOVE: wa_excel-value TO wa_input-inv_date.
WHEN '0004'.
MOVE: wa_excel-value TO wa_input-inv_no.
WHEN '0005'.
MOVE: wa_excel-value TO wa_input-post_date.
WHEN '0006'.
MOVE: wa_excel-value TO wa_input-comp_code.
WHEN '0007'.
MOVE: wa_excel-value TO wa_input-acc.
WHEN '0008'.
MOVE: wa_excel-value TO wa_input-cost_center.
WHEN '0009'.
MOVE: wa_excel-value TO wa_input-amt.
WHEN '0010'.
MOVE: wa_excel-value TO wa_input-int_ord.
ENDCASE.
*At end of every row append the excel data into table it_data
AT END OF row.
APPEND wa_input TO it_input.
CLEAR wa_input.
ENDAT.
ENDLOOP. -
Using ResultSet to read records from multiple tables
Im using a ResultSet object to read records from tables.
I have a database with 5 tables. Initially, I got it to work fine with one of those tables. What Im exactly trying to do is check if there is a record in a table which matches a given string, and if it does, display some text on some JTextFields. I got that to work fine with one table.
Problem is, how do I get it to work with all 5 tables at the same time?
i.e. instead of searching through one table, I want it to look through all 5 tables and look for the matches.
Any help greatly appreciated.
ThanksAfter the first interaction with the first table, I
used a stmt.getMoreResults() followed by instructions
to get data from the second table, and so on.
Worked fine.Sounds remarkably inefficient. (Potential for lots of network traffic.)
is this another way of doing it?Sounds more like a document search type of thing than a database query. What about Lucene? Could it help here?
% -
Problems with ECATT recording using SAPGUI Record
Hello,
I got a problem with my recording. All the prerequisites are done. The problem is, that when the recording is done i don't see the recording in SECATT testcase. Normally when you do a recording you see at the bottom right of the gui a red/white icon active. When i do a recording now, this red/white icon isn't active.
For my it's a very strange error. I hope somebody can give me a hint where i can look,
Thanks in advance.
Kind regards,
Maarten.Maarten,
First when you start the recording using SAPGUI, you will get the pop-up whether to record this new session. You need to select Yes before continuing your recording.
Secondly check the scripting values in the target system whether it is enabled or disabled using the RZ11 transaction. Mostly SAP Basis team have authorization to change these values for us.
Here is the parameter we need to check in RZ11 - sapgui/user_scripting. It should be TRUE.
Let me know if this helps. -
Hi, everyone.
I have a problem in selecting records. In this case, I want to select records from database
LFA1,and the components of this table are LIFNR,ERDAT,LOEVM ,and so on.The type of LIFNR is char(10).There is a internal table:tab_cdhdr , the elements of tab_cdhdr are: objectid,udate and change_ind.The type of objectid is char(50).
And the select-rule is that: LIFNR = objectid. So I write like this:
select lifnr
erdat
loevm
form lfa1
into tab_lfa1
for all entries in tab_cdhdr
where lfa1 = tab_cdhdr-objectid+0(10).
But there is a warning: When using FOR ALL ENTRIES IN the specifyed length for "OBJECTID" is ignored in this condition.
Can you help me to solve this problem?
Thanks.Hi Feng..
If you dont want to change the Internal table TAB_CDHDR, Then declare another internal table (TEMPTAB_CDHDR.) with the same structure but Objectid with only 10 chars.
IF TAB_CDHDR[] IS NOT INITIAL.
LOOP AT TAB_CDHDR.
MOVE-CORRESPONDING TAB_CDHDR TO TEMPTAB_CDHDR.
APPEND TEMPTAB_CDHDR.
ENDLOOP.
select lifnr
erdat
loevm
form lfa1
into tab_lfa1
for all entries in tab_cdhdr
where lfa1 = TEMPtab_cdhdr-objectid.
ENDIF.
Sure ... this will work for u.....
REWARD IF HELPFUL. -
Problem of reading the content of this .txt files
currently i have a problem of reading the content of this file castle.txt
#Server Ready.
Lee Siaw Kang 50256808:08:382004/03/15Abdul Rahman 60296008:13:242004/03/15Kenneth Lee 60299308:13:532004/03/15Ho Kid Peng 31337508:17:442004/03/15Tonny Sherbern 50271108:19:132004/03/15Frederick Foh 50257908:20:212004/03/15Jason Kho 61702908:21:312004/03/15Lois Lee Liarn Huee 61897408:22:522004/03/15Victor Palau Udih 31337308:23:202004/03/15Michelle Sim 61899008:27:412004/03/15Alan Hong 50262708:30:312004/03/15Frederick Foh 50257908:33:412004/03/15Douglas Aseng 50255808:36:442004/03/15Atika Abang 31347508:36:592004/03/15David Dzrandinuraidi 61239608:38:012004/03/15Sentia Brangking 61896808:39:502004/03/15Dinah Samuel 61704608:40:582004/03/15Dr. Anderson Tiong 61702508:42:102004/03
it is something like this ...i want to break it into readable format ...i have tried vector with is the following code.
import java.util.*;
import java.io.*;
public class parseCastle {
public static Vector parseInfo(String str) {
int recordSize = 59;
Vector v = new Vector();
for (int i=0; i<str.length(); i+=recordSize) {
String str1 = str.substring(i, i+recordSize);
Vector vi = new Vector();
vi.addElement(str1.substring(0, 35));
vi.addElement(str1.substring(35, 41));
vi.addElement(str1.substring(41, 49));
vi.addElement(str1.substring(49, 59));
v.addElement(vi);
return v;
//constructor
parseCastle(){
try
FileInputStream fin = new FileInputStream("castle.txt");
File fprop = new File("castle.txt");
byte[] data = new byte[(int)fprop.length()];
int total = fin.read(data);
if (total != data.length) {
System.err.println("Error loading file");
return;
//System.out.println(data.length);
Vector v = parseInfo(new String(data));
for (int i=0; i<v.size(); i++) {
Vector vi = (Vector)v.elementAt(i);
for (Enumeration e = vi.elements(); e.hasMoreElements();)
System.out.println(e.nextElement());
System.out.println();
//*** Alternative ***
//for (int k=0; k<vi.size(); k++)
// System.out.println(vi.elementAt(k));
catch (IOException e)
System.out.println("Error: "+e);
e.printStackTrace();
But it gave me error. like it exceeds array boundary...can someone expert help me outYou should be aware that these kind of effort always involves certain amount of risk because the proper record format is not hundred percent guaranteed. So, make sure to use properly formatted file, or genuine database instead.
import java.io.*;
import java.util.regex.*;
public class ParseCastle2{
public static void main(String[] args) throws Exception{
String line, data;
BufferedReader br = new BufferedReader(new FileReader("castle.txt"));
br.readLine(); //discard #Server Ready line
line = br.readLine();
Pattern pat = Pattern.compile("([ .A-Za-z]+)([/0-9:]+)");
Matcher mat = pat.matcher(line);
Pattern subPat = Pattern.compile("(\\d+):(\\d\\d:\\d\\d)(.+)");
while (mat.find()){
System.out.println(mat.group()); // if name only, use group(1) ... beware trailing space
data = mat.group(2);
Matcher subMat = subPat.matcher(data);
while (subMat.find()){
System.out.println(" cdID = " + subMat.group(1));
System.out.println(" Time = " + subMat.group(2));
System.out.println(" Date = " + subMat.group(3)); -
Problems importing HD recording from Sony HD-HCR3
Apologies but I am new to this!
I just bought the Sony HCR3 - when I try to import (via Firewire) HD movies, the picture is very jumpy, single clips are getting broken up and the audio is distorted (voice sounds an octave lower) even though the playback on the camcorder is fine. I don't have any problems when I record and import in DV format.
I have upgraded to iMovie 6, but have yet to upgrade from 10.3.9 (which means that some features of iMovie HD don't work). Is this the reason for my problem?
Thanks in advance for any advice.
iMac G5 Mac OS X (10.3.9)Well, I have a similiar problem with the Sony HDR-HC1E.
The imported movie ist too slow, so it sounds an octave lower. This problem occures on my powerbook g4 and on my powermac g5. There are no problems with imovie 5.
Nobody could tell me why this problem occures....
You should go bac to imovie 5. iDVD 6 has also some problems.
Sincerely.... -
Greetings, folks. I've run into what I think is an odd problem in cycle recording in an audio track. What I wanted to do was to automatically record multiple takes of a guitar solo. Consulting the manual and both the LP7 and Advanced LP7 guides and set up what I thought was the proper configuration for doing that: under File > Song settings > Recording, I checked the "Auto mute" and "Auto Create Tracks in Cycle Record" checkboxes, I defined a cycle region, I defined a shorter autodrop zone within that cycle region, armed the track, then hit record. I thought that Logic would then create a new track with each cycle pass while I was playing, and that those tracks would play through the audio object of the track that had been armed for recording.
What happened instead was that, after a single pass, recording would switch off (though it would continue to cycle in playback), so that in order to record multiple passes I needed to stop, reset the track to the beginning of the cycle region, and then hit record again. The audio regions I recorded on successive takes also don't display on individual tracks. I'd like to be able to see them all in the arrange window and be able to play them through the original track's audio object for editing purposes, but I can't figure out how to do that either (without creating multiple tracks and then manually dragging each take from the audio window).
So I guess I have two questions: first, what did I do wrong in attempting to cycle record, and then how can I view all of the individually recorded takes in the arrange window?
Thanks,
TrentJord, when I called it a "phenomenon" I did not mean to describe it as a bug or fault - you're right, it is a desireable feature of cycle recording.
As far as your question goes: Suppose you are recording track-by-track a song with two parts, an acoustic guitar and vocals, and the acoustic guitar part has an intricate eight-bar solo that needs to be redone. The advantage of using cycle recording and autodrop here is that you could define a cycle region giving you a two-bar intro (say) to the part you need to rerecord and a couple of bars of outro, making it easier to accomplish a musical phrasing. For example, say you're a vocalist trying to record a one-octave scale, and your pitch is off on the "fa-so." With cycle recording and autodrop, you could sing along with the "do-re-mi" and settle your pitch before rerecording the notes you flubbed, whereas (as I understand it) if you're just rerecording the "fa-so" in cycle mode, you won't get the "do-re-mi" as an intro after the first pass and would then just hope that you're nailing the notes you need to rerecord cold.
You can combine cycle recording with autodrop in Midi - why not in audio? It's a desireable feature in both. -
i am facing problem while reading values from properties file ...i am getting null pointer exception earlier i was using jdeveloper10g now i am using 11g
hi TimoHahn,
i am getting following exception in JDeveloper(11g release 2) Studio Edition Version 11.1.2.4.0 but it works perfectly fine in JDeveloper 10.1.2.1.0
Root cause of ServletException.
java.lang.NullPointerException
at java.util.PropertyResourceBundle.handleGetObject(PropertyResourceBundle.java:136)
at java.util.ResourceBundle.getObject(ResourceBundle.java:368)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at org.rbi.cefa.master.actionclass.UserAction.execute(UserAction.java:163)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) -
Problem While reading a file in text mode from Unix in ECC 5.0
Hi Experts,
I am working on Unicode Upgrade project of ECC5.0.
Here i got a problem with reading a file format which it does successfully in 4.6 and not in ECC5.0
My file format was as follows:
*4 000001862004060300000010###/#######L##########G/##########G/########
It was successfully converting corresponding field values in 4.6:
*4
00000186
2004
06
03
00000010
25
0
4
0
54.75
0
54.75
0.00
While i am getting some problem in ECC5.0 during conversion of the above line:
*4 000001862004060300000010###/#######L##########G/##########G/########
it was consider in the same # values.
I have used the following statement to open and read dataset.
OPEN DATASET i_dsn IN LEGACY TEXT MODE FOR INPUT.
READ DATASET i_dsn INTO pos_rec.
Thanks for your help.
Regards,
Gopinath Addepalli.Hi
You might be facing this problem because of uni code. So while opening or reading the file, there is a statement call ENCODING. Use that option and keep the code page which you want. Then the problem may be solved.
Thanks & Regards.
Harish. -
Problem on reading and writing from from a *.txt file
I get Problem on reading and writing from from a *.txt file. The following is the read() method...
The software said the DataInputStream is depreciated. Can anyone help me please?
public void read()
File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
FileInputStream in = null;
String str = "";
try
in = new BufferedReader(file);
//in = new FileInputStream(file);
for(;;)
str = new BufferedReader(in).readLine();
//str = new DataInputStream(in).readLine();
if(str == null)
break;
System.out.print(str);
in.close();
catch(IOException e)
System.err.println("execution error: " +e);
}Thank you for your reply. I have made some change. However, there is an incompetable type found error.
in = new BufferedReader(new InputStreamReader(in));The following are all of the code.
public void read()
File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
FileInputStream in = null;
//BufferedReader in = null;
String str = "";
try
in = new BufferedReader(new InputStreamReader(in));
//in = new FileInputStream(file);
for(;;)
BufferedReader Bstr = new BufferedReader(new InputStreamReader(in));
//str = new BufferedReader(in).readLine();
//str = new DataInputStream(in).readLine();
if(str == null)
break;
System.out.print(str);
in.close();
catch(IOException e)
System.err.println("execution error: " +e);
Maybe you are looking for
-
Can I convert photos into pdf?
I need to convert photos into a pdf is this an issue?
-
Problem with bar graphs in Crystal Report
Hi All, I am currently working on bar graphs and i am facing problem displaying trend in the graph when there is no data for any particular date. My X-axis has date and y-axis has data. I want to display all the dates on x-Axis which is selected by t
-
Controlling animation with the movement of a mouse
I know there are ways to control videos and swfs with the actions of a mouse in Flash Catalyst. But how can you set it so that the swf animation will go back and replay from the beginning once the mouse moves anywhere on the trigger? My animation pla
-
Topic: Why has this simple midlet stopped working?!!
I have a midlet which was working fine, but now gives the error, 'No such method getTitle.()Ljava/lang/String;'. I have now created a very simple test midlet that includes the problematic line of code: import javax.microedition.midlet.*; import javax
-
Why have i got $1 charges on my account????
why have i got $1 charges on my account from apple tv when i havent even downloaded/purchased anything? i have just found so many $1 charges on my bank statement and im not happy! please someone shed some light on this, otherwise im cancelling