I get output files from very old Fortran programs, which look like:
0.81667E+00 -0.12650E+01 -0.69389E-03
0.94381E+00 -0.11985E+01 -0.11502E+00
0.96064E+00 -0.11333E+01 -0.17616E+00
0.10202E+01 -0.12435E+01 -0.93917E-01
0.10026E+01 -0.10904E+01 -0.15108E+00
0.90516E+00 -0.11030E+01 -0.19139E+00
0.98624E+00 -0.11598E+01 -0.22970E+00
Is it possible to read this in Python and convert the numbers to "normal" floats?
I am trying to create a generic method that will read an attribute on a class and return that value at runtime. How do would I do this?
Note: DomainName attribute is of class DomainNameAttribute.
[DomainName(“MyTable”)]
Public class MyClass : DomianBase
{}
What I am trying to generate:
//This should return “MyTable”
String DomainNameValue = GetDomainName<MyClass>();
Hello.
I need to read sound stream sent by flash audio in my C++ application (C++ is not a real limitation, it may be C# or any other desktop language).
Now flash app sends audio to another flash app but I need to receive the same audio by desktop application.
So, is there a standard or best way how to do it?
Thank you for your answers.
I have a Silverlight application that reads its content from an XML file. User can enter data and It'll be stored in SQL database. How can I read the data from SQL database and store it into an XML file ?
Thanks,
I have a .doc or .docx file where in after the booking of the hotel room i wanna give the agreement and the receipt in a .doc file.
for this i have a text file,
To, [NAME]
[ADDRESS]
Dear....
...Content;;;...
This will be my .doc file. My idea is to read this .doc file and replace the tags, say.([NAME] and [ADDRESS]) with the user's name and address.
How can i do this in ASP.NET?
I need my program to create and edit a config file, which would contain information about set of objects, and than read it at every execution. Is there some sort of guideline for config style that i can use?
while( fscanf( tracefile, "%s ", opcode ) != EOF ){blah}
Occasionally I need to cause fscanf to re-read a line upon a certain condition in my code being met. Is this possible; how would I do that?
Thanks.
I want to make an "Open File" button to import txt files contents into a textarea.
How can I read the file contents without uploading it to the server?
I want to use javascript (with jquery lib) and I want to do it without refreshing the page.
I've tried this:
main = do
hSetBuffering stdin NoBuffering
c <- getChar
but it waits until the enter is pressed, which is not what I want. I want to read the character immediately after user presses it.
I am using ghc v6.12.1 on Windows 7.
Hello
How can I try to read data from socket with timeout?
I know, select, pselect, poll, has a timeout field, but using of them disables "tcp fast-path" in tcp reno stack.
The only idea I have is to use recv(fd, ..., MSG_DONTWAIT) in a loop
I have imported a GWT project from GIT , but when i run maven Install
it says
.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar; cannot read zip file entry
and if i simply run my application , i get this
\git\my-Search-Engine\qsse\war}: java.lang.NoClassDefFoundError: com/google/inject/servlet/GuiceServletContextListener
I tried to find out the way , one solution i found was to move the guice-servlet-3.0 from build path to \qsse\war\webinf\lib
but if i do that i start gettin the exception
ava.lang.NoClassDefFoundError: com/google/inject/Injector
any idea how can i resolve this
For Example:
If I need to read a multiple line input like:
1 20
2 31
3 41
Also how to specify input in multiple lines?
When ever I hit "Enter" on keyboard for new line input the program starts execution?
I have a set of user data which I am try to access. Due to the way our company's employee data is set up, the information is available both through LDAP and through a table in our DB.
I was curious, for standard read operations which would generally be a higher performance query?
Hello,
Is there a way to read a file in PHP5 from line X to line Y into a string, without reading the entire file.
I would like to return huge files (10,000+ lines) using ajax requests. Each request will provide the client with additional lines. And due to the fact that the file can reach large sizes, I would like to avoid reading it whole over and over again.
Thank you.
https://search.twitter.com/search.json?q=doug
How do I read this like VIEW SOURCE, so that I know what I'm looking at?
Is there a website that can prettify it for me?
BTW, I use python
I strongly prefer not to use additional 3rd party components, libraries or DLLs (at least in v1.0), unless there is absolutely no other solution.
Question: (how) can I use Delphi to programatically crate a BDE database and write to it, then use PHP to read from it?
Any URLs for examples of tutorial?
I am attempting to code some plugins to use with MIDI sequencers but have hit a stumbling block. I can't use global-scope variables to store information because multiple instances of the .dll can exist which share memory.
How do I create a class (for re-usability purposes in other plugins) containing 2 dimensional array and other variables the content of which is to be shared between functions? If that is possible, how would I read and write the data from the function in the framework where I do the processing?
Hi all,
Assume I have a class
class A
{
char *attr1,*attr2;
public:
. . .
};
How to save the object of this class to file in a binary format and read it back?
Thanks.
i tried making library with
ar -r -c -s libtestlib.a *.o
as given in this tutorial http://matrixprogramming.com/Tools/CompileLink.html
But on linking with library following error comes
g++ -o uni2asc uni2asc.o -L../Modules -ltestlib
../Modules/libtestlib.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
i tried with ranlib also but still the error comes..
im working with ubuntu9.10
Please suggest me some solution for this
haw do you read an incomming tcp stream until a specific delimiter is found in C#?
the only possible solusion i have come up with is reading the incomming stream one byte at a time.