Which app to read and search a text file?
I have a text doc containing a little database.. I want to keep on my iPhone and read .. but I also need to search it. Does any App do this?
Well you can upload it somehow and then read it online. On your mac, go to any page and make it a bookmark. Then, press the little "book" icon by your bookmarks and then click on the bookmark you just made. Then change the web address of the bookmark you just saved to...
javascript:void%28s%3Dprompt%28%27Find%20text%3A%27%2C%27%27%29%29%3Bs%3D%27%28% 27s+%27%29%27%3Bx%3Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor%28Math.random %28%29*100%29%3Brid%3D%27z%27%20+%20rn%3Bb%20%3D%20document.body.innerHTML%3Bb%3 Db.replace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20%27%20id%3D%27%20+%20ri d%20+%20%27%20style%3D%5C%27color%3A%23000%3Bbackground-color%3Ayellow%3B%20font -weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid%28document.body.innerHTML %3Db%29%3Balert%28%27Found%20%27%20+%20document.getElementsByName%28rid%29.lengt h%20%20%27%20matches.%27%29%3Bwindow.scrollTo%280%2Cdocument.getElementsByName%28rid %29%5B0%5D.offsetTop%29%3B
Then sync this bookmark to your iPhone. Finally, open the database page you uploaded to the web on your iphone and go to the bookmark you just saved. You should then be able to search the document. Tell me if it works.
Similar Messages
-
Can I read and search a PDF file on my IPAD
Can I read and search a PDF file on my IPAD??
Several apps will allow you to work with PDFs. iBooks will handle them, but there have been a few issues reported about using it for that purpose. My guess is it depends on the size and complexity of the file. Adobe has a reader in teh app store (free). Goodreader is an option, and provides functionality for searches.
-
Need Help: UTL_FILE Reading and Writing to Text File
Hello I am using version 11gR2 using the UTL_FILE function to read from a text file then write the lines where it begins with word 'foo' and end my writing to the text file where the line with the word 'ZEN' is found. Now, I have several lines that begin with 'foo' and 'ZEN' Which make for one full paragraph, and in this paragraph there's a line that begins with 'DE4.2'. Therefore,
I need to write all paragraphs that include the line 'DE4.2' in their beginning and ending lines 'foo' and 'ZEN'
FOR EXAMPLE:
FOO/234E53LLID
THIS IS MY SECOND LINE
THIS IS MY THIRD LINE
DE4.2 THIS IS MY FOURTH LINE
THIS IS MY FIFTH LINE
ZEN/DING3434343
FOO/234E53LLID
THIS IS MY SECOND LINE
THIS IS MY THIRD LINE
THIS IS MY FIFTH LINE
ZEN/DING3434343
I am only interested in writing the first paragraph tha includes line DE4.2 in one of ther lines Not the Second paragraph that does not include the 'DE4.2'
Here's my code thus far:
CREATE OR REPLACE PROCEDURE my_app2 IS
infile utl_file.file_type;
outfile utl_file.file_type;
buffer VARCHAR2(30000);
b_paragraph_started BOOLEAN := FALSE; -- flag to indicate that required paragraph is started
BEGIN
-- open a file to read
infile := utl_file.fopen('TEST_DIR', 'mytst.txt', 'r');
-- open a file to write
outfile := utl_file.fopen('TEST_DIR', 'out.txt', 'w');
-- check file is opened
IF utl_file.is_open(infile)
THEN
-- loop lines in the file
LOOP
BEGIN
utl_file.get_line(infile, buffer);
--BEGINPOINT APPLICATION
IF buffer LIKE 'foo%' THEN
b_paragraph_started := TRUE;
END IF;
--LOOK FOR GRADS APPS
IF b_paragraph_started AND buffer LIKE '%DE4%' THEN
utl_file.put_line(outfile,buffer, FALSE);
END IF;
--ENDPOINT APPLICATION
IF buffer LIKE 'ZEN%' THEN
b_paragraph_started := FALSE;
END IF;
utl_file.fflush(outfile);
EXCEPTION
WHEN no_data_found THEN
EXIT;
END;
END LOOP;
END IF;
utl_file.fclose(infile);
utl_file.fclose(outfile);
EXCEPTION
WHEN OTHERS THEN
raise_application_error(-20099, 'Unknown UTL_FILE Error');
END my_app2;
When I run this code I only get one line: DE4.2 I AM MISSING THE ENTIRE PARAGRAPH
PLEASE ADVISE...Hi,
Look at where you're calling utl_file.put_line. The only time you're writing anything is immediately after you find the the key word 'DE4', and then you're writing just that line.
You need to store the entire paragraph, and when you reach the end of the paragraph, write the whole thing only if you found the key word, like this:
CREATE OR REPLACE PROCEDURE my_app2 IS
TYPE line_collection
IS TABLE OF VARCHAR2 (30000)
INDEX BY BINARY_INTEGER;
infile utl_file.file_type;
outfile utl_file.file_type;
input_paragraph line_collection;
input_paragraph_cnt PLS_INTEGER := 0; -- Number of lines stored in input_paragraph
b_paragraph_started BOOLEAN := FALSE; -- flag to indicate that required paragraph is started
found_key_word BOOLEAN := FALSE; -- Does this paragraph contain the magic word?
BEGIN
-- open a file to read
infile := utl_file.fopen('TEST_DIR', 'mytst.txt', 'r');
-- open a file to write
outfile := utl_file.fopen('TEST_DIR', 'out.txt', 'w');
-- check file is opened
IF utl_file.is_open(infile)
THEN
-- loop lines in the file
LOOP
BEGIN
input_paragraph_cnt := input_paragraph_cnt + 1;
utl_file.get_line (infile, input_paragraph (input_paragraph_cnt));
--BEGINPOINT APPLICATION
IF LOWER (input_paragraph (input_paragraph_cnt)) LIKE 'foo%' THEN
b_paragraph_started := TRUE;
END IF;
--LOOK FOR GRADS APPS
IF b_paragraph_started
THEN
IF input_paragraph (input_paragraph_cnt) LIKE '%DE4%'
THEN
found_key_word := TRUE;
END IF;
--ENDPOINT APPLICATION
IF input_paragraph (input_paragraph_cnt) LIKE 'ZEN%' THEN
b_paragraph_started := FALSE;
IF found_key_word
THEN
FOR j IN 1 .. input_paragraph_cnt
LOOP
utl_file.put_line (outfile, input_paragraph (j), FALSE);
END LOOP;
END IF;
found_key_word := FALSE;
input_paragraph_cnt := 0;
END IF;
ELSE -- paragraph is not started
input_paragraph_cnt := 0;
END IF;
EXCEPTION
WHEN no_data_found THEN
EXIT;
END;
END LOOP;
END IF;
utl_file.fclose (infile);
utl_file.fclose (outfile);
--EXCEPTION
-- WHEN OTHERS THEN
-- raise_application_error(-20099, 'Unknown UTL_FILE Error');
END my_app2;
SHOW ERRORSIf you don't have an EXCEPTION section, the default error handling will print an error message, spcifying exactly what the error was, and which line of your code caused the error. By using your own EXCEPTION section, you're hiding all that information. I admit, the error messages aren't always as informative as we'd like, but they're never less informative than "Unknown UTL_FILE Error'. Don't use your own EXCEPTION handling unless you can improve on the default.
Remember that anything inside quotes is case-sensitive. If your file contains upper-case 'FOO', then it won't be "LIKE 'foo%' ".
Edited by: Frank Kulash on Dec 7, 2011 1:35 PM
You may have noticed that this site normally doesn't display multiple spaces in a row.
Whenever you post formatted text (such as your code) on this site, type these 6 characters:
\{code}
(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing. -
How do I read and write to text files on a remote computer's hard drive
I would like to read and write data to a text file on a remote computer. This is easily accomplished using one of the file functions such as "write characters to file.vi". If I am already connected to the remote computer, all I need to do is specify the path to the particular file and it will work fine.
My problem is that I want to connect to the remote computer programatically within LabVIEW (I do not want to have to use the computer's OS to establish the connection. Is there a function that I can use to do this?
Thomas D. Schaefer
Wells Manufacturing CorpYariv,
You should really start a new thread with a new question like this, so that more people see it. Some people look primarily at threads that have no responses yet. Also, don't post the exact same question in multiple places. Or, if you must cross-post to some other forum, make sure to mention it in your question text.
I'm happy to be a brick in your Western Wall, but I'm not sure what the main objective is here. Is the main problem really getting access to the "X bytes received in Y seconds at Z bytes/sec" string? Or is it accomplishing the file transfer? And what OS and LabVIEW version are you running?
I think your problem is that you the LabVIEW System Exec command does not allow for the degree of interactivity that you need if you want to issue a sequence of commands to a command-line executable. However, under Windows XP (and, presumably, other Windows versions, though I can't check), you can tell the FTP executable to use commands from a textfile script by using the -s switch, and you can override the prompts during multiple file transfers with the -i switch:
ftp -i -s:FILEPATH SERVERNAME
If you issue a command in this format to System Exec, and make sure to create a file at FILEPATH with your command sequence (one per line), then you should at least accomplish the FTP actions. This won't give you the transfer details in the standard output, unfortunately. However, if you just want a general sense of how much was transferred and how quickly it happened, you can code that in LabVIEW by getting the resulting file sizes and using Tick Count before and after the System Exec call to see how long the transfer took.
Hope that helps,
John -
can you see which apps are open and/or running (like you can on an android phone by going to settings>applications>running services)?
Hi wjosten,
thank you for the help. I should have said I had a iphone 3. A friend has the same phone and she showed me how she can see what web pages are open when she double taps the home button. Mine is set to bring up favourites when I double tap (chosen from settings>general>home button).. BUT my choices are only HOME; SEARCH; PHONE FAVORITES; CAMERA or IPOD. I changed my choice to HOME but that just defeats the purpose as when I am at the home page and double tap nothing happens. Am I making sense? -
Class for reading and saving standard text (SO10)
Hi,
I was using READ_TEXT and SAVE_TEXT to read/save the standard text (S010). Is there any standard class which contains the method to Read and Save the text of SO10?
I have searched the se24, bu i was unable to find class which can be used.
Thanks,
ShrinivasIf you do a "where used" on READ_TEXT then you will find plenty of SAP methods that call it, so why not just call it directly yourself? If you do want a class wrapper around it, then it wouldn't take long to build your own "Z_CL_TEXT_HANDLER" class and associated methods.
Jonathan -
Hello,
I have a strange file in my Users folder, named PortDetect.log
I have no idea which app created it and it reappears when I delete it.
Has anyone got the same file? Or know where it may originate from?
Thanks in advance!know where it may originate from?
The Huawei wireless modem driver. -
Shell scripts to read data from a text file and to load it into a table
Hi All,
I have a text file consisting of rows and columns as follows,
GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL005675 000001 000000 000000 000000 000000 000000 000001 My requirement is that, i should read the first 3 columns of this file using a shell script and then i have to insert the data into a table consisting of 3 rows in oracle .
the whole application is deployed in unix and that text file comes from mainframe. am working in the unix side of the application and i cant access the data directly from the mainframe. so am required to write a script which reads the data from text file which is placed in certain location and i have to load it to oracle database.
so I can't use SQL * loader.
Please help me something with this...
Thanks in advance.1. Create a dictionary object in Oracle and assign it to the folder where your file resides
2. Write a little procedure which opens the file in the newly created directory object using ULT_FILE and inside the FOR LOOP and do INSERTs to table you want
3. Create a shell script and call that procedure
You can use the post in my Blog for such issues
[Using Oracle UTL_FILE, UTL_SMTP packages and Linux Shell Scripting and Cron utility together|http://kamranagayev.wordpress.com/2009/02/23/using-oracle-utl_file-utl_smtp-packages-and-linux-shell-scripting-and-cron-utility-together-2/]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
Which app will read the square information codes?
which app will read the square information codes?
Search the playstore for QR code reader - here are a few:
QR Code Reader - Android Apps on Google Play
QR Code Scan & Barcode Scanner - Android Apps on Google Play
QR Code Scan & Barcode Scanner - Android Apps on Google Play -
Searching a text file and printing the line if found!
Hi, Im fairly new to JAVA and have been googling this for hours and havent found any results that
have helped me...
Im looking to search a text file for a value that is in a that is delimited by colons
eg 45787 : 398948 : 398884 : 398984
IF that value is found I need to print this entire line and move it into a string.
I can work out the delimit part, the problem for me is a)searching the text file
and b) tell java to print that line only??
Any help would be very very much appreciated
Cheers
Jamespublic void printCourses() throws Exception
stuinput[] courseObjArray = new stuinput[10]; //Make sure this is the same as the ammount in the text
Scanner sc = new Scanner(new File("testfile.txt"));
int i=0;
boolean found = false;
while(sc.hasNextLine())
//Delimit this line with scanner
Scanner sc1 = new Scanner(sc.nextLine());
sc1.useDelimiter(":");
courseObjArray[i] = new stuinput(sc1.next(),sc1.next());
i++;
}//while
for(int i1 = 0;i1 < courseObjArray.length;i1++)
System.out.println(courseObjArray[i1].courseCode);
System.out.println(courseObjArray[i1].courseName);
System.out.println(courseObjArray[i1].courseName);
System.out.println("-----------------");
String courseCode2 = "courseObjArray[i1].courseCode";
if (courseCode2 == "12345")
System.out.println("working");
else{System.out.println("Not Found");}
}hmmm just wondering why could this method always return a "Not Found"....if the text file had a whole bunch of values like this
12345:Course1
12344:Course2
12343:Course3
isnt it surposed to return 1 "Working"?? because there is a 12345 in on of the line, in the semi colon delimited line with 2 values, one being the course code, one being the course name??
Given that there is 10 lines (from Array Object) -
I have a PDF with a diagram, I need to translate the text so I open it in Illustrator. The document opens up vertically oriented I try to put it horizontal to be able to read and change the text However everything I have done is not working The artboard does change, but the diagram stays vertical.....Please help I need to finish that for today..Please help
A PDF usually consists of one to an indefinite number of clipping masks inside each other.
You need to be very carefull with selecting stuff.
So you need to read the manual on how to select stuff and on the basics of Illustrator.
On top of that: because of the complex hierarchy of PDF files, it is kind of difficult to help you without seeing anything. -
Read and vocalize pdf text on pdf formatted cd-rom?
Will adobe reader 11.01 read and or vocalize text from a pdf formatted cd-rom? How does on accomplish these functions?
Yes, when the PDF documents contain text.
-
The file contains file info data which cannot be read and has been ignored
We have been sending images out to contractors, and sometimes when they come back the files are having this error:
the file contains file info data which cannot be read and has been ignored
When I then try to Photoshop Script the file info it throws errors. Does anyone know what causes this error to happen?
Thank youok, Thanks!, BUT here's the bigger issue:
We use a lot of Photoshop Scripting, and the file info is how we direct all of our workflows. when a file comes back with "the file contains file info data which cannot be read and has been ignored" error, the scripts are unable to read/write to any of the file info ever again. So not only did we lose all the info already in the file, but we can't use the file at all after this.
Additonally, we tried copying and pasting to new blank documents, but realized we needed all the paths, channels, and sampler points too.
Is there anything anyone can think of to get around this probelm? A setting, or a program to fix the metadata, etc?
Thanks!!! -
Arobat Reader and Search 4.0
I have software disck "The Early Church Fathers" by Harmony Media Inc. It says the Merck Manual requires the Acrobat Reader and Search 4.0 to work properly. It says I must uninstall Acrobat 3.x versions before installing the the newer 4.0 version.
Shouldn't the latest versions open this, but it doesn't?well, the local Nokia representative got back to me.
Turns out all those "problems" are "features" (surprise surprise), they will forward it to the global Nokia.
I guess it's the best I could have hoped for.
Adam. -
Is there a function to Search a Text File?
I am writing a program that will read data from a URL and then save that URL to a text file. I then need to be able to search the text file for certain strings and must know which line they appear on. I realize that I could read the text file in line by line looking for the string and then note the current line number. However, I need to search for 20-30 different strings in each URL and this would be very inefficient. I would really like some way to say:
int lineNumber = 0;
lineNumber = searchText("sometextfile.txt", str);
And have searchText return the lineNumber on which the String str was found. Alternately, if there is way to search a URL that would cut out the middle man of writing it to a text file first.
Any help would be greatly appreciated as I could not find this anywhere. Thanks.I have done something similar to to this, but it depends on what you want to use it for. I was looking for specific data on websites and would copy that data into a database. So, I used regex to find the data on the site and copy it. I also had to use String Tokenizer in certain places to get the correct data sometimes.
orozcom
Maybe you are looking for
-
Export data from a table to text file using srcipt task
Hi i am new to SSIS i have to export data from a table and append it into a existing file through SSIS script task please help Thanks Umesh
-
I bought a new mac and my music in itunes didn't transfer over from my old cpu. Most of it was put on with cd's I have. Can I transfer the music from my I-phone to itunes on my mac?
-
BAPI object - FATAL ERROR.
Receiving xMII Workbench errors due to possible BAPI coding discrepancies in BAPI object CSEP_MAT_BOM_READ. Am getting a FATAL ERROR RADIO BUTTON in xMII work bench with Jco connector to R3 systems. However the same BAPI Object CSEP_MAT_BOM_READ pass
-
Get image several indicators... help!
Hello, I am trying to get image to use in report of several indicators. I made handmade table with several indicators. And I would like to get the image of whole indicators to use in report. I would like to use subvi with the table bigger than normal
-
New QuickTime 7.4 Update Cannot Run .AVI movie files? How to play AVI?
Hello. I updated my home iMac's QT to the latest ver 7.4, had some .avi files use to be able to play while I was in the 1st gen iMac running Tiger (didn't play those files until now) My office G5 Tower running on latest 10.4.11 with QT prior to curre