Computing.Net > Forums > Programming > Help ... READ a log file...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Help ... READ a log file...

Reply to Message Icon

Name: Eng.Sara
Date: May 16, 2008 at 04:37:57 Pacific
OS: win vesta
CPU/Ram: 2G
Product: hp
Comment:

hello,
I'm new here, but I need help...

I want to read a log file file ... but i cant read the output and convert the string to a number (since it contains numbers & letters). Instead, I should read the number, then check (using a for loop) where is the position of the letter 'e', and finally construct the number from the string by multiplying the number before the letter 'e' with 10^(number after letter 'e').
So How could I do THIS ?!



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: May 16, 2008 at 05:27:00 Pacific
Reply:

Please, may you post as sample some lines of your log file to be processed?

P.S.: Vesta is an ancient Roman goddess not a version of Windows!


0

Response Number 2
Name: Eng.Sara
Date: May 16, 2008 at 06:21:29 Pacific
Reply:

Input vector # 99:
OUTPUT: 0 1 0 1 0
**** Vdd = 1.8 **** Tclk = 0.1 ****
SER(FIT): 1.1e-002 1.1e-002 1.9e-002 1.1e-002 5.2e-003

**********************************************************
Input vector # 100:
OUTPUT: 0 1 1 0 0
**** Vdd = 1.8 **** Tclk = 0.1 ****
SER(FIT): 7.6e-003 1.3e-002 1.2e-002 1.5e-002 5.2e-003


I want to compute the horizontal sum then the average of the sums USING a simple C++ code
......


0

Response Number 3
Name: IVO
Date: May 16, 2008 at 06:47:22 Pacific
Reply:

Sorry, I apologize to waste your time as I I assumed you need a batch script to process your log. I am not so acquainted with C++ to suggest you the solution; anyway as far as I know about C++ you can read directly numbers expressed in scientific notation as you can by Fortran without a preliminary parsing of each row.

Repost your question in the Forum adding the sample in #2 as a thread with answers gets low attention than one with no replies.

Sorry again.


0

Response Number 4
Name: Eng.Sara
Date: May 16, 2008 at 07:28:29 Pacific
Reply:

Thank you anyway :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Vb msgbox with timer batch: read vars from .tx...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help ... READ a log file...

VBScript help creating a log file www.computing.net/answers/programming/vbscript-help-creating-a-log-file-/14414.html

Help creating a Batch file urgent www.computing.net/answers/programming/help-creating-a-batch-file-urgent/15963.html

read a text file in assembly www.computing.net/answers/programming/read-a-text-file-in-assembly/17267.html