marking of the words in a .txt file
Hi all
We have looked everywhere on the internet for a script we can use/buy. But can not find it anywhere.
We have a fairly large document and an external list of words in a .txt file. This list contains the words that should be in the index at the end of the document.
Instead of a few hundred words filling and by linking them to the hand, it would be great if there is a script that can handle this.
We watched in Indexmatic2 (http://www.indiscripts.com/post/2011/07/indexmatic-2-public-release-and-user-s-guide ), but this script generates its own list of index and creates no links to the original words in the document.
We found a script that can create indexes links between words colored in the document.
Then someone knows if there is a script floating around that can load an external .txt wordlist and either color or add a character style to words in a document?
Or even a script that does what you need in 1 GB?
Thank you
Thedesmodus,
There is a script by Martin Fischer at www.hilfdirselbst.ch (swizz-German site) that might meet your needs. You can download it if you choose to be a premium member, which requires a small fee. It is written for InDesign CS3 but it should work with CS4 or CS5. I tested it with a small list of words, and it worked very well with InDesign CS5.
If you prefer a Google translation:
Uwe
Tags: InDesign
Similar Questions
-
How to read the Thai language in .txt file?
AttN; Who may apply.
How read txt file in another language (Asian language like Japanese, thai or Korea)?
Please let me know urgent... I have to use emergency...
Best regards
SAE
Hello CAs,
Welcome to the community of Sony.What is the model number of the digital book reader?
The reader supports text formats (.txt) as well as the two following formats:
-File EPUB (.epub) EPUB (version 2.0 of PAHO) taken in charge
-PDF file (.pdf) support is based on the PDF 1.6 specification.The default language on your Reader Digital Book setting does not affect the language in which the book is. Reading in a foreign language, you will have to buy them specifically in this language.
Thank you for your message.
-
create and write input by the user in a txt file
Hey all
Below, I added a piece of code... I would like to take the data and store it in a txt file as soon as the user clicks on the button field, I tried several times to get this figured out and google it fot too long now. could someone be so kind to help me please?
Thank you
btnRegister = new ButtonField ("Register", ButtonField.CONSUME_CLICK);
customListener = new FieldChangeListener() {}
' Public Sub fieldChanged (field field, int context) {}
Dialog.Alert ("you will receive an email as soon as your account has been activated!");
}
};
Add (btnRegister);
btnRegister.setChangeListener (customListener);
}
store users entry in a txt file, if no txt file, then create one.
{} public void createFile()
System.out.println ("registry"); Screen prints
String data = Username.getText ();
String Data1 = enterPIN.getText ();
data from Byte [] = "Registration".getBytes ();
try {}
FileConnection fconn is (FileConnection) Connector.open (NewRegFileName, Connector.READ_WRITE);.
If (fconn.exists ()) {}
fconn. Delete();
fconn. Create();
System.out.println ("created txtfile");
OutputStream os = fconn.openOutputStream ();
System.out.println ("write data");
OS. Write (Data);
OS. Close();
fconn. Close();
}
}
catch (IOException e) {}
System.out.println ("NewRegFileName" + (Data));
}System.exit(); Quit the application after registration
}
Screen.onClose ();
/ * public boolean onClose() {//Exit application after registration
System.Exit (0);
Returns true;
}*/
Screen.Close (); Quit the application after registration
}When you call createFile()?
-
Set the color of a .txt file?
Hello
I have a .txt file on my desktop that contains only 1 line of text: #79a3d2
I also have the following code in a .jsx file.
var fileToParse = File ('/Desktop/Photoshop.txt'); fileToParse.open('r'); var NewColor = fileToParse.readln(); fileToParse.close(); var color = app.foregroundColor; color.RGBColor.hexValue=NewColor; app.foregroundColor = color;
I'm trying to change the color of foreground to the hex code in the text file, but I have an error message saying "Undefined is not an object"?
Is someone can you please tell me what is the problem with my code (in layman's terms)?
Thank you in advance.
var File = fileToParse (Folder.desktop + ' / Photoshop.txt');
fileToParse.open ('r');
var NewColor = fileToParse.readln ();
fileToParse.close ();
app.foregroundColor.rgb.hexValue = NewColor;
-
with utl_file - save the result in a txt file.
PLS, help...
I have a question that I used to use SQL PLUS, using the COIL and it worked very well.
Now, I'm changing it to pl/sql, which I'll have to use UTL_FILE.
The problem is that I need to create a file with a pre defined provision.
Can help you me pls?
Don't have much experience with UTL_FILE
Prompt 'Periodo MON-YY:' Define periodo = '&periodo' SPOOL C:\Users\gtorrens\Documents\GLAudit_2014_2015\gl_audit-&&periodo..txt set termout off set echo off set verify off set feedback off set serveroutput off set head off set pagesize 0 set linesize 608 set timing off SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ rpad(SUBSTR (gcc.segment1, 1, 2),2,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (emp.de_sgm, 1, 70), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),70,' ') || rpad(SUBSTR (gjs.user_je_source_name, 1, 20),20,' ') || lpad(DECODE (NVL (gjl.entered_dr, 0) , 0, DECODE (NVL (gjl.accounted_dr, 0), 0, 'C', 'D') , 'D'),1,' ') || lpad(TO_CHAR (gjh.default_effective_date, 'DD-MON-YY'),9,' ') || lpad(TO_CHAR (gjh.posted_date, 'DD-MON-YY'),9,' ') || lpad(SUBSTR (gcc.segment2, 1, 9),9,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (cta.de_sgm, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || rpad(SUBSTR (cta.tp_sgm, 1, 10),10,' ') || lpad(TO_CHAR (NVL (gjl.accounted_dr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(TO_CHAR (NVL (gjl.accounted_cr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(SUBSTR (gjh.currency_code, 1, 5),5,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (REPLACE (SUBSTR (gjl.description, 1, 150), '|', '@'), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),150,' ') || rpad(gjb.last_updated_by,15,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (gjb.name, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || lpad(SUBSTR (fus.user_name, 1, 30),30, ' ') linha_utl FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 -- p_nr_livro AND gjh.actual_flag = 'A' AND gjh.period_name = upper('&&periodo') -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by -- AND rownum<1001 ; SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ (lpad(TO_CHAR (NVL (SUM(gjl.accounted_dr), 0),'999G999G999G999G999G990D00'),268,' ')) /*VL_DEBITO*/ ||' '||(lpad(TO_CHAR (NVL (SUM(gjl.accounted_cr), 0),'999G999G999G999G999G990D00'),37 ,' ')) /*VL_CREDITO*/ ||' '|| TO_CHAR (COUNT (*)) soma /*qtd_reg*/ FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 AND gjh.actual_flag = 'A' AND gjh.period_name = '&&periodo' -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by -- and rownum<1001; spool off;
I did something like that, when I turned it in a procedure...
create or replace PROCEDURE XXTVGAUDIT (o_return_err OUT VARCHAR2 , o_return_code OUT NUMBER , p_period_name IN VARCHAR2 , p_nr_livro IN NUMBER) IS CURSOR c1 IS SELECT rpad(SUBSTR (gcc.segment1, 1, 2),2,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (emp.de_sgm, 1, 70), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),70,' ') || rpad(SUBSTR (gjs.user_je_source_name, 1, 20),20,' ') || lpad(DECODE (NVL (gjl.entered_dr, 0) , 0, DECODE (NVL (gjl.accounted_dr, 0), 0, 'C', 'D') , 'D'),1,' ') || lpad(TO_CHAR (gjh.default_effective_date, 'DD-MON-YY'),9,' ') || lpad(TO_CHAR (gjh.posted_date, 'DD-MON-YY'),9,' ') || lpad(SUBSTR (gcc.segment2, 1, 9),9,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (cta.de_sgm, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || rpad(SUBSTR (cta.tp_sgm, 1, 10),10,' ') || lpad(TO_CHAR (NVL (gjl.accounted_dr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(TO_CHAR (NVL (gjl.accounted_cr, 0),'999G999G999G999G999G990D00'),38,' ') || lpad(SUBSTR (gjh.currency_code, 1, 5),5,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (REPLACE (SUBSTR (gjl.description, 1, 150), '|', '@'), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),150,' ') || rpad(gjb.last_updated_by,15,' ') || rpad(TRANSLATE ( CONVERT ( TRANSLATE ( REPLACE(REPLACE (REPLACE (SUBSTR (gjb.name, 1, 100), CHR (13), ''), CHR (10), ''),CHR (9), '') ,'??????????????????¡§©³º ¨¬²¹¢ª®´»£µ«¼!@#$%*()_+=[]{}/\?:<>|ãÃõÕçÇüÜâÂêÊôÔáÁàÀéÉíÍóÓúÚñшÞ' ,' aAoOcCuUaAeEoOaAaAeEiIoOuUnN ') ,'US7ASCII' ,'WE8ISO8859P1') ,'?',' '),100,' ') || lpad(SUBSTR (fus.user_name, 1, 30),30, ' ') linha_utl FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 -- p_nr_livro AND gjh.actual_flag = 'A' AND gjh.period_name = upper('null') -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by AND rownum<1001; CURSOR c2 IS SELECT /*+ INDEX(GCC GL_CODE_COMBINATIONS_U1) INDEX(GJB GL_JE_BATCHES_U1) INDEX(FUS FND_USER_U1) INDEX(GJL GL_JE_LINES_U1)*/ (lpad(TO_CHAR (NVL (SUM(gjl.accounted_dr), 0),'999G999G999G999G999G990D00'),268,' ')) /*VL_DEBITO*/ ||' '||(lpad(TO_CHAR (NVL (SUM(gjl.accounted_cr), 0),'999G999G999G999G999G990D00'),37 ,' ')) /*VL_CREDITO*/ ||' '|| TO_CHAR (COUNT (*)) soma /*qtd_reg*/ FROM gl_je_lines gjl , gl_je_headers gjh , gl_code_combinations gcc , gl_je_sources gjs , gl_je_batches gjb , (SELECT 'EMPRESA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015197 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') emp , ( SELECT 'CONTA' id_sgm , a.flex_value cd_sgm , b.description de_sgm , DECODE (SUBSTR (a.compiled_value_attributes, 5, 1) , 'L', 'Passivo' , 'A', 'Ativo' , 'E', 'Despesa' , 'O', 'Pat.Liq' , 'R', 'Receita') tp_sgm FROM fnd_flex_values_vl a, fnd_flex_values_tl b WHERE a.flex_value_set_id = 1015237 AND a.flex_value_id = b.flex_value_id AND b.language = 'PTB') cta , fnd_user fus WHERE gjl.je_header_id = gjh.je_header_id AND gjb.je_batch_id = gjh.je_batch_id AND gjs.je_source_name = gjh.je_source AND gjh.ledger_id = 2041 AND gjh.actual_flag = 'A' AND gjh.period_name = 'null' -- 'JAN-14' AND gcc.code_combination_id = gjl.code_combination_id AND gcc.segment1 IN ('01', '12', '13', '14', '05', '16', '18') AND emp.id_sgm = 'EMPRESA' AND emp.cd_sgm = gcc.segment1 AND cta.id_sgm = 'CONTA' AND cta.cd_sgm = gcc.segment2 AND fus.user_id = gjb.last_updated_by and rownum<1001; w_ind_erro NUMBER; w_erro_geral EXCEPTION; w_msg_erro VARCHAR2 (240); w_linha VARCHAR2 (1000); w_nm_arq_utl UTL_FILE.file_type; w_nm_arq_utl_r UTL_FILE.file_type; w_nm_dir_dad VARCHAR2 (80); --w_nm_int_dir_dad VARCHAR2 (80); --w_nm_arq_dad VARCHAR2 (80); w_nm_arq_dad_aux VARCHAR2 (80); w_nm_arq_dad_qtd VARCHAR2 (80); P_DIRETORIO VARCHAR2(200) := '/tmp'; P_ARQUIVO VARCHAR2(200) := 'Desliga_mainframe_indices_economicos.csv'; W_DIRETORIO VARCHAR2(50) := P_DIRETORIO; W_ARQUIVO VARCHAR2(50) := P_ARQUIVO; w_qtd_reg NUMBER; -- ----------------------------------------------- PROCEDURE pr_abre_txt --(p_nm_dir IN VARCHAR2, p_nm_arq IN VARCHAR2, p_tp_abertura IN VARCHAR2) IS BEGIN w_nm_arq_utl := UTL_FILE.fopen ( W_DIRETORIO, W_ARQUIVO, 'W'); EXCEPTION WHEN UTL_FILE.invalid_path THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Caminho Invalido'); WHEN UTL_FILE.invalid_mode THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Modo Invalido'); WHEN UTL_FILE.invalid_filehandle THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Nome Arquivo Invalido'); WHEN UTL_FILE.invalid_operation THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Operacao Invalida'); WHEN UTL_FILE.read_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Leitura'); WHEN UTL_FILE.write_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Escrita'); WHEN UTL_FILE.internal_error THEN UTL_FILE.fclose (w_nm_arq_utl); raise_application_error (-20504, 'ERRO NA ABERTURA DO ARQUIVO: Erro Interno'); END pr_abre_txt; -- ------------------------------------------------------ PROCEDURE pr_grava_txt (p_de_msg IN VARCHAR2) IS BEGIN UTL_FILE.put_line (w_nm_arq_utl, p_de_msg); EXCEPTION WHEN UTL_FILE.invalid_path THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Caminho Invalido'); WHEN UTL_FILE.invalid_mode THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Modo Invalido'); WHEN UTL_FILE.invalid_filehandle THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Nome Arquivo Invalido'); WHEN UTL_FILE.invalid_operation THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Operacao Invalida'); WHEN UTL_FILE.read_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Leitura'); WHEN UTL_FILE.write_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Escrita'); WHEN UTL_FILE.internal_error THEN raise_application_error (-20503, 'ERRO AO GRAVAR: Erro Interno'); END pr_grava_txt; -- ------------------------------------------------------ PROCEDURE pr_fecha_txt IS BEGIN UTL_FILE.fclose (w_nm_arq_utl); EXCEPTION WHEN OTHERS THEN raise_application_error (-20501, 'ERRO NO FECHAMENTO ARQUIVO DE LOG'); END pr_fecha_txt; -- -------------------------------------------------------------------------------------------------- BEGIN --PR_ABRE_TXT (W_NM_DIR_SQL, W_NM_ARQ_DAD ,'w'); pr_abre_txt ( W_DIRETORIO, W_ARQUIVO, 'w'); w_nm_arq_utl_r := UTL_FILE.fopen ( w_nm_arq_utl, w_nm_arq_dad_qtd, 'w'); -- w_qtd_reg := 0; /* FOR cur2 IN c2 LOOP w_linha := cur2.soma; pr_grava_txt (w_linha); w_qtd_reg := w_qtd_reg + 1; --IF MOD (w_qtd_reg, 100000) = 0 THEN UTL_FILE.put_line (w_nm_arq_utl_r, 'Qtd. de linhas geradas = ' w_qtd_reg w_linha ); --END IF; END LOOP; -- UTL_FILE.put_line (w_nm_arq_utl_r, 'Final de Qtd. de linhas geradas = ' || w_qtd_reg); UTL_FILE.fclose (w_nm_arq_utl_r); --*/ -- -------------------------------------------------------------------------------------------------- pr_fecha_txt; -- -- -------------------------------------------------------------------------------------------------- EXCEPTION WHEN w_erro_geral THEN raise_application_error (-20501, 'Parada por motivo de Erros na execução.'); -- END XXTVGAUDIT;
Oracle Directory object is not OS directory. It is a definition saying Oracle which OS directory to use. When Oracle run
v_file: = UTL_FILE.fopen ('TMP_DIR', 'output.log', 'W');
He goes to the data dictionary and:
1. it checks the Oracle directory object exists tmp_dir
2. If the Oracle user is allowed to create files on this object directory Oracle (see WRITING privilege granted I posted)
3 reflects the object of Oracle TMP_DIR for OS directory/tmp directory
4 creates the file /tmp/output.og owned by OS oracle user with the appropriate permissions on the database server (assuming that OS directory Oracle Directory object points on exists and oracle OS user can create files there).
Remember, most of the time the OS Oracle user created files permissions are such that the 'others' can even read.
SY.
-
Cannot open the word with long name file
Hello
I have two word file and when I want open, I have "The too long file name" and I can't open and edit.
What do I do?
Thank you
Find the file on your system, not in Word. Right-click, choose Rename.
-
Hi, I work with a project that should highlight some Word or phrases with different colors. I use the background color option to do this, but when you make a pdf file, disappearance of the color. How to make this work? FM10 unstructured.
JW
Unfortunately, this does not work in FM10 (or 11), using the CMYK settings - you have to use RGB and convert colors in the PDF file (with tools like PitstopPro of the Enfocus) or during the stage of postscript with a tool like PubliPDF (see: Grafikhuset Publi PDF for GPL license freebie; details on usage and other information are available at) (: Welcome to Grafikhuset published PDF ).
You can also try using the joboptions CMYK in RGB mode setting to see if you get an acceptable conversion (be aware that graphics and images in documents may be affected). You must also set GetLibraryColorRGBFromCMYK = None to prevent all doing unnecessary conversions color FM.
The background color feature works correctly from only FM12 CMYK mode.
-
Conversion of the registry in format txt files correct reg
Is there a tool to convert txt (during the capture) into an equivalent reg file registry files?
Joakim
In fact, you can use vregtool for this, but it is a two-step process. First convert the .txt into a file of registry ThinApp:
vregtool temp.tvr ImportDir.
Then convert the file of registry ThinApp a Regedit:
vregtool temp.tvr ExportReg Output.reg
-
Edit/Read the .txt file Variables
Hello world
I'm new to Flash so it's maybe a silly question but I wonder how I can save the data to a .txt file. This .txt file will be stored on the same server that the flash file is stored on and runs. I will, eventually, be able to access the data previously stored on the my flash movie .txt file.
Any AS3 for this?
You must use the script on the server side (PHP, etc.) in order to be able to write/record files. Here is a link that might help you get started...
http://www.Flash-DB.com/tutorials/savingAS3/savingData.php?page=2
-
I have created a form in LiveCycle. I need to have the data exported to a txt file. Previously, I've created a form in Word and it imported in LC. If this form has been filled out in Adobe and saved, I was able to export the data in a txt file. The form I'm working on now that I created in LC (instead of Word). When I fill the form in Adobe, save and then choose export to txt file, no data export. I have attached two forms: one that works (Unit_5_Preparate) and one that does not (assessment_template_test).
Thank you!
Hello
It was a learning experience (no pun intended).
If the LC Designer form is saved as 'static' then you will be able to export the data to a text file. If the form is saved as 'dynamic' then you won't be able to export to text file.
See the file saved as static.
Good luck
Niall
-
Hello friends,
In the past, you have helped me a lot!
Please, I'm reading the variables in a txt file attached. Variables appear between the lines 5187 to 5236 (49 lines). Below the threshold of 5241 to 5290 (49 lines). After the same variables of the line to line 8342 8293 (49 lines) and line 8347 8396 (49 lines). Among the variables, there is a 3106 line spacing. And so on!
The Knight of OR helped me a lot to solve part of the problem. His tips were very helpful!
I would like some advice to unify the txt file variables in just a chart. Is this possible?
Could change the attached vi.vi?
Thank you
-
How to find the largest number of text file
I use the "Read from the text file" block to read the data in my .txt file in labview. It is now in the string format. I have a lot of numbers in the file.
For example:
0.45
0.35
0.12
1,354
1.56
2.89
5.89
0.56
That's what might look like a text file. I want to find out which of these numbers is larger and do calculations with this number. I have problems with channels/number/berries formats, etc. Thank you
Try to read that the file with File.vi reading worksheet with transposes the True value. Then use the table Max & Min to get the biggest number in the table.
Lynn
-
Load a picture 2D from a txt file
Hi, I have a little problem on the table: /.
I'm a little game of tiles according to the coding, and I load the map from a .txt file.
The txt file is like this:
0 1 0 1 0 1 0 0 0 0 0 1 1 1 1
1 0 1 0 1 0 0 1 1 0 1 0 1 0 1
...
and I want to just use it in this loop:
for (var i: int = 0; i < mapHeight; i ++)
{
for (var j: int = 0; j < mapWidth; j ++)
{
var cell: MovieClip = new tile();
cell.gotoAndStop (map [i] [j] + 1);
If (i % 2 == 1) {}
Cell.x = 70 * j - 35;
Cell.y = 35 * i;
}
else {}
Cell.x = 70 * j;
Cell.y = 35 * i;
}
addChild (cell);
}
}
This loop works if I create the table on the map in the AS3 file, but with 10 cards, the code will be very very very long.
I tried to load the table from a txt file, but there is not a lof on internet information and I'm stuck.
To load the txt file:
var mapLoader:URLLoader = new URLLoader();
mapLoader.addEventListener (Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {}
var maptext:String = e.target.data;
var map: Array = maptext.split("");
trace (Map);
}
mapLoader.load (new URLRequest ("map1.txt"));
But I do not understand how to use 'map' after that, I can't use it in the loop to add cell, I have an error.
I find that all it really complicated to load just a simple table 2D from a txt file.
Can't I just put all the maps in AS3 in a different txt file and load this part of code when I need it? Like this:
"var map: Array = [];
[1,0,0,1],
[1,1,1,1]
[0,0,0,0]
[0,1,0,1],
]; "
Thanks for the help and sorry for the bad English.
If I recreate the first version, I get the same result as what you show for the second version - I do not get the result snapped up as show you. My guess is that you have the data file prepared incorrectly when you organize the data into it.
-
How to mark several files to a list in a txt file?
Hello world
I want to mark more than 250 items in the Finder (i.e. label with the Orange color) whose file names I have in a txt file.
The list of txt files looks like this:
1_A69_2015-11 - 28_1454_C0046.mov
1_A69_2015-11 - 28_1410_C0045.mov
1_A69_2015-11 - 28_1408_C0044.mov
1_A69_2015-11 - 28_1407_C0043.mov
and so on...
I want to Select all the files that I know exist on an external drive and an label them with a color.
I tried to do a Boolean search in the Finder by typing ' 1_A69_2015-11 - 28_1454_C0046.mov OR 1_A69_2015-11 - 28_1410_C0045.mov OR...» "and so forth but Finder does not seem to return an accurate list (or it sometimes does not return one at all - my list seems long.)
I understand that Automator is too primitive for this, but does not quite know Applescript, Shell script or commands in Terminal to get there.
Help, please!
The following script should SELECT all the files to the tag in the selected folder. Just run it from the script editor window (after replacing "username" with the appropriate name).
game theTextFile to POSIX file ' / Users/username/Desktop/myTextFile.txt ' as alias
Folder to pick a folder - the folder that contains the items to tag
the value theText to read theTextFile
list1 defined at {}
Repeat with thisParagraph in paragraphs of theText
the value thisParagraph to the content of thisParagraph
If thisParagraph ends by ".mov" and then
copy thisParagraph to the end of list1
end if
end Repeat
list2 defined at {}
Repeat with thisName in list1
the value thisName to the content of thisName
Try
say application "Finder" of copy file thisName of Folder at the end of list2
end try
end Repeat
say application "Finder" of selection set to list2
-
Import data from txt file with the reading of the names of columns
Hello
After changing the export of my simulation program, I can't use the postet heresolution, that works well. (I mark the message as hailed this is why I run a post only)
Can anybode if you please tell me how to fan the code to import the new txt file type. The names of the columns here are FOA online first columns, like this (with ignoring the first lines).
Hello Gabriel
You can use the use wizard (Navigator > file > use wizard) to define a new filter to import file for your data. It will take only a minute.
Please find the uri of the file that I create for you. Copy the attached file in your disk, unzip it and double-click the file uri.
Then you can open your file by using 'open with '.
Hope this helps
Maybe you are looking for
-
compatibility problems between DA2400ES and X930D?
Purchasing a X930D, someone has already tried it with a DA2400ES and/or someone does know of any compatibility issues?
-
Creating a single setup program, including the DSC Run-Time module
Hello I would like to know if it is possible to add the DSC run-time of an installer? I'm using LabVIEW and DSC 8.6 and I do not have the license for the DSC run-time. In the "Additional installers", I checked the health empty boxes: OR Distributed S
-
I have an e mail with quite a large amount of attachments, sitting in the Outbox in WINDOWS MAIL. In my view, that attachments are at the origin of the problem. As soon as I open the mailbox the arrow in bottom corner shows right 'sending mail '. It
-
Working Smartphones no blackBerry shortcuts
Hello I am facing a problem with my bb None of the shortcut works. for example if I am on the record and push the b-> bottom or the t-> top does not. in comparison with other colleagues who work (same model) and last thing, how can I switch to the ne
-
I tried to reinstall Windows on a machine running Windows 7 Build 7601 made-to-measure and now I get a "this copy of Windows is not genuine error» I was trying to transfer the operating system of a 30 GB SSD to a new 90 GB SSD as the space available