HOW TO READ TXT FILES with NOKIA 6300?
I mean:
I can see pics, video, listen mp3 but I cant read a txt file with Nokia 6300!!
is there any application to do so? thanks!!!!!!!
thanks well I tried 4 s far and none works.
I tried: book_13, read_maniac, tiny-book, plus MobileHeart.com-test-book-831-2336.jar.
it starts being frustrating.
Can you suggest one you tested it works?
-Also, I found that I cant' upload txt file while I can upload *.doc files.....do you know what's happening?
thanks again.
Similar Messages
-
How to read *.txt files with JSP?
I have to make a homepage that searches for information on a text file.
My text file is described below.
username=Hanako Sony
cpname=Sony Corporation
cpcode=500100
So, if the user inputs "username", then "Hanako Sony" should be returned. If the user inputs "cpname", then "Sony Corporation" should be returned and so on.
Can anyone help me with this? Can this be done with JSP?
Thanks,
RobTry this,
<%@ page import="java.io.*,java.util.*" %>
<%
RandomAccessFile raf = new RandomAccessFile("../webapps/test/jsp/Info.txt","r");
String qInfo = request.getParameter("qInfo");
String tInfo="";
if(qInfo != null) {
String line="";
while((line = raf.readLine()) != null) {
StringTokenizer st = new StringTokenizer(line,"=");
if(st.hasMoreTokens()) {
if(st.nextToken().equalsIgnoreCase(qInfo))
tInfo = st.nextToken();
if(tInfo.equals("")) tInfo="Property Not found ???";
} else {
qInfo="";
%>
<form name=myform action="" method="get">
<table><tr>
<td>What do you want : </td><td><input type = text name="qInfo" value="<%=qInfo%>"></td></tr>
<tr><td>Here is the information : </td><td><input type = text name="tInfo" value="<%=tInfo%>"></td></tr>
<tr><td><input type="submit" name"sub"></td></tr>
</table>
</form>Here info.txt is your text file. Use the relative path accordingly.
Hope this helps.
Sudha -
How to read .txt file into a 2D array ? Pls help !
I have a .txt file with contents as shown :
1 0 1 0 1 0 1 0
1 0 1 1 1 0 0 1
1 0 1 0 1 0 1 0
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
1 0 1 1 1 0 0 1
and so on...until 10 samples in total.
How do I create a class which has a method (which I can call later) to put all those binary digits in a 2-D array ? The method should automatically extract data from the .txt file and put it into a 2-D array. How do I do that please ?
Please help someone ? It's pretty urgent....:-(This one takes the cake: essentially the same question, cross-posted 11 times:
http://forum.java.sun.com/thread.jsp?thread=560218&forum=57&message=2752602
http://forum.java.sun.com/thread.jsp?thread=560219&forum=426&message=2752600
http://forum.java.sun.com/thread.jsp?thread=560220&forum=31&message=2752599
http://forum.java.sun.com/thread.jsp?thread=560220&forum=31&message=2752583
http://forum.java.sun.com/thread.jsp?thread=560220&forum=31&message=2752519
http://forum.java.sun.com/thread.jsp?thread=560219&forum=426&message=2752518
http://forum.java.sun.com/thread.jsp?thread=560218&forum=57&message=2752517
http://forum.java.sun.com/thread.jsp?thread=559967&forum=31&message=2750787
http://forum.java.sun.com/thread.jsp?thread=559968&forum=57&message=2750767
http://forum.java.sun.com/thread.jsp?thread=559967&forum=31&message=2750751
http://forum.java.sun.com/thread.jsp?thread=559964&forum=426&message=2750734
DON'T CROSS-POST! Send your question to one forum. You waste people's time
doing anything else.
How To Ask Questions The Smart Way -
How to open .jar files in nokia 6300
hi,
Recntly i downloaded few games to my nokia 6300, its in the jar format, when i tried to open it, i get a promt as file format not supported, Please guide how to access n open a .jar file in my mobile ? ? ? ?
keeryou can try to install it via pc suite.
.jar file usually come along with a .jad file which describe the installation info. If the phone support java application, the installation should start when the download is complete.
What's the law of the jungle? -
How to open TXT file with excel 2007
With Excel 2003 if we right click the txt source file name, there will be an option to open the file Excel, but with Excel 2007, then we right click txt fiel name , there is no option of open the file with excel, is this mean that we have to copy the txt file to excel file to manipulate the source file? Any idea how to do this?
just find out that we can use the browser to find the excel and open the file, next time the excel option will be there.
-
How to read a file with value of RAW data type? Please help
Hi Experts,
I have a file with RAW data like DE864E48833BFFF1B805001CC4EF4BFA
I am using GUI_UPLOAD.
But this FM is throwing error.
I tried by giving FILETYPE as ASC. The output internal table for this FM contains a field of type c size 32.
Now it is able to read the file but I want to assign this value to a RAW data type variable.
This it is unable to do. How to convert the char value to RAW data type?
Please help!
Thanks
GopalHi,
The documentation for the function module contains an example for RAW upload.
begin of itab,
raw(255) type x,
end of itab occurs 0.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filetype = 'BIN'
filename = 'C:\DOWNLOAD.BIN'
tables
data_tab = itab. -
How to read text file with big5 into db
hi,
how can i use UTL_FILE package to
read a text file with big5 characters and insert into db?
my oracle charset is AL32UTF8.
thx a lot!Thx for yr answer!!!
I have followed and it works.
However, I got another problem with HKSCS. When the text file contained HKSCS, the store procedure also treats it as Big5 and when I select it out, the character was not the orginal one.
Please suggest if you have any ideas.
Many Thanks!!! -
(Urgent help needed) how to read txt file and store the data into 2D-array?
Hi, I have a GUI which allow to choose file from the file chooser, and when "Read file" button is pressed, I want to show the array data into the textarea.
The sample data is like this followed:
-0.0007 -0.0061 0.0006
-0.0002 0.0203 0.0066
0 0.2317 0.008
0.0017 0.5957 0.0008
0.0024 1.071 0.0029
0.0439 1.4873 -0.0003
I want my program to scan through and store these data into 2D array.
However for some reason, my source code issues errors, and I don't know what's wrong with it, seems to have a problem in StringTokenizer though. Can anybody help me?
Thanks in advance.
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.StringTokenizer;
public class FileReduction1 extends JFrame implements ActionListener{
// GUI features
private BufferedReader fileInput;
private JTextArea textArea;
private JButton openButton, readButton,processButton,saveButton;
private JTextField textfield;
private JPanel pnlfile;
private JPanel buttonpnl;
private JPanel buttonbar;
// Other fields
private File fileName;
private String[][] data;
private int numLines;
public FileReduction1(String s) {
super(s);
// Content pane
Container cp = getContentPane();
cp.setLayout(new BorderLayout());
// Open button Panel
pnlfile=new JPanel(new BorderLayout());
textfield=new JTextField();
openButton = new JButton("Open File");
openButton.addActionListener(this);
pnlfile.add(openButton,BorderLayout.WEST);
pnlfile.add(textfield,BorderLayout.CENTER);
readButton = new JButton("Read File");
readButton.addActionListener(this);
readButton.setEnabled(false);
pnlfile.add(readButton,BorderLayout.EAST);
cp.add(pnlfile, BorderLayout.NORTH);
// Text area
textArea = new JTextArea(10, 100);
cp.add(new JScrollPane(textArea),BorderLayout.CENTER);
processButton = new JButton("Process");
//processButton.addActionListener(this);
saveButton=new JButton("Save into");
//saveButton.addActionListener(this);
buttonbar=new JPanel(new FlowLayout(FlowLayout.RIGHT));
buttonpnl=new JPanel(new GridLayout(1,0));
buttonpnl.add(processButton);
buttonpnl.add(saveButton);
buttonbar.add(buttonpnl);
cp.add(buttonbar,BorderLayout.SOUTH);
/* ACTION PERFORMED */
public void actionPerformed(ActionEvent event) {
if (event.getActionCommand().equals("Open File")) getFileName();
if (event.getActionCommand().equals("Read File")) readFile();
/* OPEN THE FILE */
private void getFileName() {
// Display file dialog so user can select file to open
JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
int result = fileChooser.showOpenDialog(this);
// If cancel button selected return
if (result == JFileChooser.CANCEL_OPTION) return;
if (result == JFileChooser.APPROVE_OPTION)
fileName = fileChooser.getSelectedFile();
textfield.setText(fileName.getName());
if (checkFileName()) {
openButton.setEnabled(false);
readButton.setEnabled(true);
// Obtain selected file
/* READ FILE */
private void readFile() {
// Disable read button
readButton.setEnabled(false);
// Dimension data structure
getNumberOfLines();
data = new String[numLines][];
// Read file
readTheFile();
// Output to text area
textArea.setText(data[0][0] + "\n");
for(int index=0;index < data.length;index++)
for(int j=1;j<data[index].length;j++)
textArea.append(data[index][j] + "\n");
// Rnable open button
openButton.setEnabled(true);
/* GET NUMBER OF LINES */
/* Get number of lines in file and prepare data structure. */
private void getNumberOfLines() {
int counter = 0;
// Open the file
openFile();
// Loop through file incrementing counter
try {
String line = fileInput.readLine();
while (line != null) {
counter++;
System.out.println("(" + counter + ") " + line);
line = fileInput.readLine();
numLines = counter;
closeFile();
catch(IOException ioException) {
JOptionPane.showMessageDialog(this,"Error reading File",
"Error 5: ",JOptionPane.ERROR_MESSAGE);
closeFile();
System.exit(1);
/* READ FILE */
private void readTheFile() {
// Open the file
int row=0;
int col=0;
openFile();
System.out.println("Read the file");
// Loop through file incrementing counter
try {
String line = fileInput.readLine();
while (line != null)
StringTokenizer st=new StringTokenizer(line);
while(st.hasMoreTokens())
data[row][col]=st.nextToken();
System.out.println(data[row][col]);
col++;
row++;
closeFile();
catch(IOException ioException) {
JOptionPane.showMessageDialog(this,"Error reading File",
"Error 5: ",JOptionPane.ERROR_MESSAGE);
closeFile();
System.exit(1);
/* CHECK FILE NAME */
/* Return flase if selected file is a directory, access is denied or is
not a file name. */
private boolean checkFileName() {
if (fileName.exists()) {
if (fileName.canRead()) {
if (fileName.isFile()) return(true);
else JOptionPane.showMessageDialog(null,
"ERROR 3: File is a directory");
else JOptionPane.showMessageDialog(null,
"ERROR 2: Access denied");
else JOptionPane.showMessageDialog(null,
"ERROR 1: No such file!");
// Return
return(false);
/* FILE HANDLING UTILITIES */
/* OPEN FILE */
private void openFile() {
try {
// Open file
FileReader file = new FileReader(fileName);
fileInput = new BufferedReader(file);
catch(IOException ioException) {
JOptionPane.showMessageDialog(this,"Error Opening File",
"Error 4: ",JOptionPane.ERROR_MESSAGE);
System.out.println("File opened");
/* CLOSE FILE */
private void closeFile() {
if (fileInput != null) {
try {
fileInput.close();
catch (IOException ioException) {
JOptionPane.showMessageDialog(this,"Error Opening File",
"Error 4: ",JOptionPane.ERROR_MESSAGE);
System.out.println("File closed");
/* MAIN METHOD */
/* MAIN METHOD */
public static void main(String[] args) throws IOException {
// Create instance of class FileChooser
FileReduction1 newFile = new FileReduction1("File Reduction Program");
// Make window vissible
newFile.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
newFile.setSize(500,400);
newFile.setVisible(true);
Java.lang.NullpointException
at FileReductoin1.readTheFile <FileReduction1.java :172>
at FileReductoin1.readFile <FileReduction1.java :110>
at FileReductoin1.actionPerformed <FileReduction1.java :71>
.1) Next time use the CODE tags. this is way too much unreadable crap.
2) The problem is your String[][] data.... the only place I see you do anything approching initializing it is
data = new String[numLines][];I think you want to do this..
data = new String[numLines][3];anyway that's why it's blowing up on the line
data[row][col]=st.nextToken(); -
How to read a file with data in Hierarchical Structure using XSD Schema
Hi
We have requirement in which we have to read a FIXED LENGTH file with FILE ADAPTER. File contains the data in hierarchical structure. Hierarchy in the file is identified by the first 3 characters of every line which could be any of these : 000,001,002,003 and 004. Rest files are followed after these. So structure is like:
000 -- Header of File. Will come only once in file. Length of this line is 43 characters
-- 001 -- Sub Header. Child for 000. Can repeat in file. Length of this line is 51 characters
--- 002 -- Detail record. Child for 001. Can repeat multiple times in given 001. Length of this line is 43 characters 1353
-- 003 -- Sub Footer record at same level of 001. Will always come once with 001 record. Child for 000. Length of this line is 48 characters
004 -- Footer of file.At same level of 000. Will come only once in file. Length of this line is 48 characters
Requirement is to create an XSD which should validate this Hierarchical Structure also i.e data should come in this hierarchy only else raise an error while parsing the file.
Now while configuring the FILE ADAPTER to read this file we are using Native Schema UI to create the XSD to parse this structure using an example data file. But we are not able to create a valid XSD for this file which should validate the Hierarchy also on the file.
Pls provide any pointers or solution for this.
Link to download the file, file structure details and XSD that we have created:
https://docs.google.com/file/d/0B9mCtbxc3m-oUmZuSWRlUTBIcUE/edit?usp=sharing
Thanks
Amit Rattan
Edited by: user11207269 on May 28, 2013 10:16 PM
Edited by: user11207269 on May 28, 2013 10:31 PM
Edited by: user11207269 on May 28, 2013 10:33 PMHeloo.. Can anyone help me on this. I need to do Hierarchial read / validation while reading the file using File Adapter using Native XSD schema.
-
How to read .wav files with DIADEM
I have done a acoustic analysis with a microphone, and I have save the different Files with .wav format.
I need to read these waveform files with DIADEM.
Diadem recognize the different files however it returns the message "Diadem d'ont load the files ---.wav"Hello Jean-Julien!
Get and install the Audio Data PlugIn. You can get ist here: http://zone.ni.com/devzone/cda/epd/p/id/44
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater? -
How to read only files with a certain format from folder with java
I have this folder on the server and I only want to read files from this folder on the server... I only want to read files with the files format starting with error_ and ending with xml... an example of a file would be..
error_123.xml
I want something like this
if(fileName.startsWith("error_") && fileName.endsWith(".xml")){
but which java package will I have to use to read the file from the directory...Create an implementation of the java.io.FilenameFilter interface to match the pattern you need.
Create a java.io.File object for the folder.
Use the File.listFiles(FilenameFilter) method to get an array of File objects for the files in the folder that match the pattern.
For each file in the array, create a FileInputStream, wrap it in an InputStreamReader, and wrap that in a BufferedReader (assuming you want to read the XML files as character streams). -
How to read Raw files with PS CC
I installed ps and bridge cc - the programs cannot read raw files (canon 5d mk III and Sony Nex 6). How to fix?
http://forums.adobe.com/community/bridge
http://forums.adobe.com/community/photoshop
This forum is about the Cloud as a delivery process, not about using individual programs
If you start at the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll -
How to read a file with both text and binary data?
For text data I use a BufferedReader,
for binary data I use a DataInputStream.
Since readLine is deprecated in DataInputStream, how can I read in a proper way a file that contains some lines of text followed by some binary data.
Is there a way to do this without writing a new 'readLine' for DataInputStream (that has to take into account the different newlines for Unix en other OS's)?sorry about that ^
NEW STRING str
WHILE there is stuff in the file DO
getByte()
IF reading a string THEN
WHILE byte is not a return character DO
convert the byte to character/string
append char to str
WEND
ELSE IF reading raw data THEN
parse raw data
do stuff with it
END IF
WEND -
How to read *.txt files?
I have to make a class in java that searches for information on a text file.
My text file is described below.
username=Hanako Sony
cpname=Sony Corporation
cpcode=500100
So, if the user inputs "username", then "Hanako Sony" should be returned. If the user inputs "cpname", then "Sony Corporation" should be returned and so on.
Can anyone help me with this?
Thanks,
RobTry this:
import java.io.*;
import java.util.*;
public class Tread
BufferedReader reader;
Vector wl = new Vector();
public Tread()
try
reader = new BufferedReader(new FileReader("file.txt"));
catch(FileNotFoundException e)
System.out.println(""+e);
String s = null;
try
while( (s = reader.readLine()) != null)
wl.add(s);
System.out.println(s);
reader.close();
catch (IOException e)
System.out.println(""+e);
String su = ". ";
BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
while (!su.equals(""))
try
System.out.println("What to look for ?");
su = keyboard.readLine();
search(su);
catch(Exception e){}
public void search(String su)
String si;
int p;
for (int i=0; i < wl.size(); i++)
si = (String)wl.elementAt(i);
p = si.indexOf("=");
if (p > 0 && si.substring(0,p).equals(su))
show(si.substring(p+1));
public void show(String so)
StringTokenizer st = new StringTokenizer(so,"|");
while (st.hasMoreElements())
System.out.println(st.nextElement());
public static void main(String[] args)
new Tread();
Noah -
Hi Folks,
How to read & write files with same extension(like ".sas", ".txt" , ".csv",and ".log" in Adobe AIR.
Please let me tell if anybody knows asap.
Thanks & Regards,
AndersonThanks Jon,
But, I know how to read the file if we give exact file path
I need to get the path and read file(s) with same extension files in the same folder using adobe air, not single file.
Don't have file path even, i have folder path, in that somany files are there. So i need to get which are the same extension(Ex: ".txt", ".sas") files
If you have any idea , please help me out
Regards,
Vijay.
Maybe you are looking for
-
Download IDOCS from ECC to XI in 7.1.
Hi Can anyone explain how do we download the Idocs from the ECC to PI in 7.1 version Thanks PR
-
What is serve.php?
I get a message "You have chosen to open serve.php which is a php File from https://serve.directdigitallc.com" although I have not initiated any such downloads. What is this? Should I download it? "
-
Applescript using XCODE 3.1.1 memory leak?
Does anyone know about a memory leak in applescript applications. I've written an application which displays images. It appears to retain each displayed image in memory untill it finally hangs. Does anybody know if this is new in 3.1.1 as I don't rem
-
We have controlling area currency USD, company code currency USD. Is any way to follow WBS project budget in other currency? Thank's Edward
-
My airport express 802.11n won't restart?
I bought an apple airport express from best buy last week. When I tried to set it up, my macbook pro couldn't find it. It was open box and didn't come with a cd for the airport utility, but I just got the macbook about two or three weeks ago and it c