file command: "XML document text" vs "XML document text"
I've just used the file command on four files of RDF-XML with the
augtfidf.rdf: XML document text
kyoto.rdf: XML document text
stuff.rdf: XML document text
tfidf.rdf: XML document text
What does it mean that one of them has an extra space between "XML"
The kid's a hot prospect. He's got a good head for merchandising, an
agent who can take you downtown and one of the best urine samples I've
seen in a long time. [Dead Kennedys t-shirt]
On 16.10.2012 16:06, Adam Funk wrote:
> I've just used the file command on four files of RDF-XML with the
> following output:
> augtfidf.rdf: XML document text
> kyoto.rdf: XML document text
> stuff.rdf: XML document text
> tfidf.rdf: XML document text
> What does it mean that one of them has an extra space between "XML"
> and "document"?
Hard to tell without further information.
What does file *.rdf | od -c show you?
Janis Papanagnou wrote:
> On 16.10.2012 16:06, Adam Funk wrote:
>> I've just used the file command on four files of RDF-XML with the
>> following output:
>> augtfidf.rdf: XML document text
>> kyoto.rdf: XML document text
>> stuff.rdf: XML document text
>> tfidf.rdf: XML document text
>> What does it mean that one ...Change the name with the random names in a text file
I am fairly new to the language and programing. I am trying to solve a
problem in a text file. Where names are something like in this manner
[**Name2 (NI) 98**]
[**Last Name (STitle) 97**]
[**First Name4 (NamePattern1) 93**]
[**Last Name (NamePattern1) 94**]
([**Name (NI) 95**])
[**Last Name (un) 96**]
I am trying to change these with random names.
Any ideas or how should I do it.
Any help appreciated.
Thank in advance
On Tue, Jun 28, 2011 at 12:17 PM, Amaninder Singh <email@example.com> wr=
> Hi Guys,
> I am fairly new to the language and programing. I am try...Automate Import of File with Certain Text in File Name
Dear Access Developers:
I need to automatically import a file into Access from the same
directory every day. However, I need the code to search the files in
the directory and only import the one with the current day's date in
the file name (otherwise, the file name will not change).
Alternatively, Access could just import the one with the most recent
Can anyone provide code to do this?
I found this code some time ago, it grabs all the filenames in a
directory. You can use it in a standard module, and bring all the
filenames back to a variab...Rename multiple files using names in a text file
I would like to rename files (jpg's ones) using a text file containing the
Below is the code that doesn't work :
#-*- coding: utf-8 -*-
from os import listdir, getcwd, rename
list_files = listdir(getcwd())
filtre = re.compile("jpg$", re.IGNORECASE)
list_jpg = filter(filtre.search, list_files)
#strip all element of list list_jpg
for nom in list_jpg:
#let's rename :
while i <= len(list_jpg_...Reading Text File, Text Scrolling and erase line from a text file
How can I Reading Text File, then Text Scrolling by means of
keys "page UP" "page Down" and erase a specific line from a text
file , when press "F2" key?
Lidia from Poland
> Hi ,
> How can I Reading Text File, then Text Scrolling by means of
> keys "page UP" "page Down" and erase a specific line from a text
> file , when press "F2" key?
> ...BCP import text file with blank line at end of file
I am trying to bcp a text file that is written out of a Java
application. The text file has important order information that I need
to bcp into a SQL Server 2000 database. The problem is that when
records are written out by the Java application the last item in each
record has a new line character attached to it so that a new line is
started for the next record. BCP gives me an error and doesn't import
anything if there is this blank line at the end of my text file. If I
delete the last blank line then my text file imports without any
issues. Anyone have any ideas how I can fix this issue?...how can I save text files to the file name which defined by variable
I have a file named time_fina which is a array, and want save it to a text file , which located in the directory name 'e:\temp\' and the site_name is a variable defined above, '_mload.dat3' is the suffix name.
for example my program is below,
time_fina = [1 2 3 4 5 6];
save_name = strcat('e:\temp\',site_name,'_mload.dat3');
save save_name time_fina -ascii
Dear mouse cat!
> I have a file named time_fina which is a array, and want save it to a text file , which located in the directory name 'e:\temp\' and the site_name is a...How to make Match Pattern keep searching a text file until the end of file?
Would anybody know how to wire/make Match Pattern keep searching
for a "regular expression" within a text file until the end of file?
What happened to me was after Match Pattern found a match, it stop.
My text file has many "regular expression" are the same but I need
to find them to get data. Just for an example:
Voltage at TP9 is 3.4
Voltage at TP8 is 5.1
Voltage at TP3 is 4.8
and "regular expression" = "Voltage at" , how to make Match
Pattern keep go on until
the end of line 3? This is just an example of 3 lines, my text
file...How to generate tex file that includes other tex files?
I have a LaTeX document that I organized by separating sections into independent tex files and grouping them all with calls to \include and \input, but now I need to generate a version of this document that is contained in a single tex file.
I've gave some text macro languages a try (the C preprocessor, and M4), but it appears that they require some sort of text mangling and introduce comments on the output file.
Does anyone know of a better, or effective, way of generating a single tex document where all calls to \input and \include are replaced with the contents of those files?
...Save (i)th variable from a structure to an individual text file with dynamic file name
I wrote this code
name = ['lwp_',num2str(i),'.txt'];
dt = test.output(:,:,i);
save name dt;
clear i name dt;
What I would like to get out of this is 5 text files named out1.txt, out2.txt, etcetera, with each one containing the (i)th output, that is test.output(:,:,1),test.output(:,:,2), etcetera
What I get instead is a single name.mat file.
COnversely, if I replace
save name dt;
save (name, dt)...Converting A Unicode Text File to An ASCII Text File
We have a large number of text files built in Unicode that we need to
be read by SAS. SAS does not read Unicode text. To convert the Unicode
text to ASCII text we did the following:
A Unicode text file adds an additional blank space to each character.
To remove this blank character, you can use the code below.
The hexidecimal value '00' is a blank character. So remove it using
the SAS statement '00'x. The 'x' tells SAS you are reading
Use RECFM=N to tell SAS that you are reading a stream of data that
will not conform to a typical file structure. SAS will ...concatenating multiple text files into one text file
I have a huge number of text files like :
each file contains some headerlines at the beginning and data in 2 columns. I want to concatenate the data of the files into one text file .Can anyone hel me pls?thank u in advance.
...automatic naming of files based on the readed file name?
Using "write labview measurement file" and "read labview measurement
file". For example:
I recommended u to try "Long Path Tool" program .before I have problem like this. and after I found long path tool and now my problem solved
...output file name based on original file name
I have a simple txt parsing script that I'd like to have the output be
named after the original text file.
original = original.txt
output = original_output.txt
I'm just doing a simple file.open, and couldn't find anything.
File.open('output.txt', 'w') do |f2|
File.readlines("original.txt").each do |line|
Thanks in advance for any help.
Posted via http://www.ruby-forum.com/.
Collin Moore wrote:
> I have a simple txt parsing script that I'd like to have the output be
> named after the original text file.
> original = original.tx...How to copy a file to a file with a prefixed file name
I'm trying to write a program that will archive selected files to an
archive directory. The files in the archive directory will have a
prefix in the format yyyymmdd-hhmmss-filename.ext. So, if the file is
called "somefile.dat", then the filename in the archive directory
should be "20090522-164325-somefile.dat". I'm using Clipper's COPY
FILE command to do the copy. I can't figure out how to get the prefix
in front of the file name. Creating the prefix string is no problem,
but I can't figure out how to tack that onto the front of the
filename. If I...File Name as a text overlay
I'm new to actions, and have a number of image files(over 100)I want
to overlay with their respective file names(bottom right), less the
extension, using an action. Having messed around for a while I would
sure appreciate being pointed in the right direction.
With thanks if you can help, Paul.
I think it is hard.
Tony G. Smith
Vizros - Realistic 3D page curl plug-ins and more
Demo at http://www.vizros.com/gallery.html
firstname.lastname@example.org (Paul G) wrote in message news:<email@example.com>...
> I'm new to actions, and have a number of image...How to format a text file just like the RFC-text files?
I want to make some document go like these, what tools can help?
Any help would be nice, thanks!
BLIOGRAPHY ........................................... 34
A. EXAMPLES ............................................... 36
B. SIMPLE FIELD PARSING ................................... 40
C. DIFFERENCES FROM RFC #733 .............................. 41
D. ALPHABETICAL LISTING OF SYNTAX RULES ................... 44
August 13, 1982 - i - RFC #822
Standard for ARPA Internet Text Messages
By 1977, the Arpanet employed several informal standards for
the text messages (mail) sent among its host computers. It was
felt necessary to codify these practices and provide for those
features that seemed imminent. The result of that effort was
Request for Comments (RFC) #733, "Standard for the Format of ARPA
Network Text Message", by Crocker, Vittal, Pogran, and Henderson.
The specification attempted to avoid major changes in existing
software, while permitting several new features.
The framework severely constrains document tone and appear-
ance and is primarily useful for most intra-organization communi-
cations and well-structured inter-organization communication.
It also can be used for some types of inter-process commun...having text or file names as variables
I have a code that is working great, I can load two excel files into matlab and then run my test on the 2 files. I now would like to run this code on lots of excel files, i want to load in say 20 different files and then run each file against each other. My idea is to use a for loop and then to just keep changing the files that matlab drags in, the problem is matlab does not seem to like me doing this with text or string variables?
let me show you the beginning part of my code that works:
format long g
td...File name in text export
I have a problem trying to transfer text to a file. I need to include
periods (.) in the file name, but it keeps changing them to pound signs
(#). Here is what I have in the 'File Name' field:
="c:\38XW71.01.ADF.0001." & Format(Now(),"mmddhhnnss") & ".txt"
Expected output is:
Actual output is:
Does anyone know how to prevent access from converting these periods to
Thanks in advance!!!
I doubt a Microsoft OS is going to like that kind of a name, since...How do I append text to the end of a file?
(with-open-file (stream "filename.extension" :direction :output)
(fie-position stream :end)
(format stream "Stuff to write to file~%"))
To try to write something to the end of a file. But it keeps
overwriting the entire file and writing the data over it.
Is there a way to write something to the end of a file but keep the
rest of the file safe?
There has to be a way to move the file position designator to the end
of a file and then write to it.
Depends what you want to do; in your example you will get a "file
exists" error if yo...Read a non text file
How can i convert a weird looking file to text file.
I know the main info is stored in the file which looks like below.
���zUZjLRyu�P̤� ��� �W��e�@1'�(��u-nG��p��2_�� T&�6+�
�~x�fG���s�b�/-+�@��0�%��6�wu�=��z���Y�0...Automated text file naming
Is there a way to name a text file based on a variable's value? For
instance, suppose we have a for loop where 'i' is initialized at 1
and increments up to 10. I want the program to generate a new text
file to store data in with every iteration.
for i = 1:10
diary('file_i.txt') % Replace 'i' with its current value in the
I'm not expecting that the diary() function will necessarily work but
hopefully it helps you understand what I'm trying to do. Also, I'm
not looking to just create 10 separate commands to crea...Compare text files of names
I have 2 text files that contain the names of people. The file
vash.txt has a list of 20 names, the file field.txt has a list of 125
names. I am trying to compare the 2 files and output a list of names
that are mentioned in both vash.txt and field.txt, but haven't found
the right combination. Can someone give me a pointer?
On 10 Feb 2004 10:50:46 -0800, Snowy Bunting wrote:
> I am trying to compare the 2 files and output a list of names
> that are mentioned in both vash.txt and field.txt, but haven't found
> the right combination.
grep field.txt -f vash.txt...Detecting the end of a text file...
I'm just beginning to learn the Ruby progamming language, although I
have some previous programming experience in Java. I would like to
know if how I can detect the end of a file when parsing a text file in
Ruby. I don't want to throw an error or exception when I reach the end
of the file, I just want to tell my parser to stop parsing.
Thanks for the help.
The SketchUp Artist
On 7/25/07, firstname.lastname@example.org <email@example.com> wrote:
> I'm just beginning to learn the Ruby progamming language, although I
> have some previous programming experience in Java. I woul...