Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > How can I open a file, skip first 2 lines and get the 50th character?

Reply
Thread Tools

How can I open a file, skip first 2 lines and get the 50th character?

 
 
FrancisC
Guest
Posts: n/a
 
      10-10-2003
How can I open a file, skip first 2 lines and get the 50th character?

EXP 0 R:\000\un\111\e00\e00noLog\1006\bdry_arc.e00
ARC 2
1 1 0 0 0 0 7

i.e., I want to get the "7" in the third line, how can I do that?

thx!!


 
Reply With Quote
 
 
 
 
Mike Wahler
Guest
Posts: n/a
 
      10-10-2003
"FrancisC" <(E-Mail Removed)> wrote in message
news:bm52m9$2v8d$(E-Mail Removed)...
> How can I open a file, skip first 2 lines and get the 50th character?
>
> EXP 0 R:\000\un\111\e00\e00noLog\1006\bdry_arc.e00
> ARC 2
> 1 1 0 0 0 0 7
>
> i.e., I want to get the "7" in the third line, how can I do that?


Please see the replies you already got to this
same message you posted in alt.comp.lang.learn.c-c++

And if you want to post to more than one group, crosspost,
don't multi-post.

Thank you.

-Mike


 
Reply With Quote
 
 
 
 
FrancisC
Guest
Posts: n/a
 
      10-10-2003
how to crosspost?

"Mike Wahler" <(E-Mail Removed)> 在郵件
news:hUohb.3935$(E-Mail Removed) nk.net 中撰寫...
> "FrancisC" <(E-Mail Removed)> wrote in message
> news:bm52m9$2v8d$(E-Mail Removed)...
> > How can I open a file, skip first 2 lines and get the 50th character?
> >
> > EXP 0 R:\000\un\111\e00\e00noLog\1006\bdry_arc.e00
> > ARC 2
> > 1 1 0 0 0 0 7
> >
> > i.e., I want to get the "7" in the third line, how can I do that?

>
> Please see the replies you already got to this
> same message you posted in alt.comp.lang.learn.c-c++
>
> And if you want to post to more than one group, crosspost,
> don't multi-post.
>
> Thank you.
>
> -Mike
>
>



 
Reply With Quote
 
Mike Wahler
Guest
Posts: n/a
 
      10-10-2003
"FrancisC" <(E-Mail Removed)> wrote in message
news:bm57jf$al$(E-Mail Removed)...
> how to crosspost?


When you write your message, list all the newsgroups
you want to post to in the 'newsgroup' field (but
use this feature sparingly, it's rarely appropriate
to post the same message to more than two or three
groups).

See www.usenet.org for more information about
how to use Usenet effectively, including why
not to "top-post" as you've just done.

-Mike


 
Reply With Quote
 
Mark McIntyre
Guest
Posts: n/a
 
      10-10-2003
On Fri, 10 Oct 2003 10:46:13 +0800, in comp.lang.c , "FrancisC"
<(E-Mail Removed)> wrote:

>how to crosspost?


By reading your newsreader's instruction manual. Press F1 now and type
"crosspost" in the search box.

Seriously, we can't help you, because its offtopic in CLC and you're
using a different newsreader to many of us. Please don't tell us what
it is, we know already its Outhouse Express 6.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
nospam@nospam.invalid
Guest
Posts: n/a
 
      10-12-2003
Hello Mark McIntyre,

On 11-Oct-2003, Mark McIntyre <(E-Mail Removed)> wrote:

> Please don't tell us what
> it is, we know already its Outhouse Express 6.


How did you know?
BTW which newsreader am I using?

 
Reply With Quote
 
Joona I Palaste
Guest
Posts: n/a
 
      10-12-2003
http://www.velocityreviews.com/forums/(E-Mail Removed)lid <(E-Mail Removed)> scribbled the following:
> Hello Mark McIntyre,


> On 11-Oct-2003, Mark McIntyre <(E-Mail Removed)> wrote:


>> Please don't tell us what
>> it is, we know already its Outhouse Express 6.


> How did you know?


Perhaps from this bit here:

From (E-Mail Removed) Sun Oct 12 21:05:43 2003
Path: news.helsinki.fi!newsfeed2.funet.fi!newsfeeds.fune t.fi!uio.no!feed.news.nacamar.de!newsfeed.tiscali. ch!solnet.ch!solnet.ch!nntp.gblx.net!news.hgc.com. hk!not-for-mail
From: "FrancisC" <(E-Mail Removed)>
Newsgroups: comp.lang.c
Subject: Re: How can I open a file, skip first 2 lines and get the 50th character?
Date: Fri, 10 Oct 2003 10:46:13 +0800
Organization: HGC Boardband
Lines: 27
Message-ID: <bm57jf$al$(E-Mail Removed)>
References: <bm52m9$2v8d$(E-Mail Removed)> <hUohb.3935$(E-Mail Removed) et>
NNTP-Posting-Host: 218.191.45.181
X-Trace: news.hgc.com.hk 1065755055 341 218.191.45.181 (10 Oct 2003 03:04:15 GMT)
X-Complaints-To: (E-Mail Removed)
NNTP-Posting-Date: Fri, 10 Oct 2003 03:04:15 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^

X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Xref: news.helsinki.fi comp.lang.c:635778

how to crosspost?

"Mike Wahler" <(E-Mail Removed)> 在郵件
news:hUohb.3935$(E-Mail Removed) nk.net 中撰寫...

(snip)

> BTW which newsreader am I using?


Let's see.

From (E-Mail Removed)lid Sun Oct 12 21:05:53 2003
Path: news.helsinki.fi!newsfeed2.funet.fi!newsfeeds.fune t.fi!skynet.be!skynet.be!nntp.cs.ubc.ca!news.UVic. CA!cyclone.bc.net!news.alt.net!news.dizum.com!sewe r-output!mail2news
From: "(E-Mail Removed)" <(E-Mail Removed)>
Subject: [OT]Re: How can I open a file, skip first 2 lines and get the 50th character?
Date: Sun, 12 Oct 2003 16:46:44 GMT
X-Mailer: You guessed it!
Newsgroups: comp.lang.c
References: <bm52m9$2v8d$(E-Mail Removed)> <hUohb.3935$(E-Mail Removed) et> <bm57jf$al$(E-Mail Removed)> <(E-Mail Removed)>
X-No-Archive: Yes
Old-NNTP-Posting-Host: 1.2.3.4 (Just Kidding
X-Question: Are you X nooozzy?
Message-ID: <(E-Mail Removed)>
Mail-To-News-Contact: (E-Mail Removed)
Organization: (E-Mail Removed)
Lines: 10

I couldn't find any such information from your headers, sorry.

--
/-- Joona Palaste ((E-Mail Removed)) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Stronger, no. More seductive, cunning, crunchier the Dark Side is."
- Mika P. Nieminen
 
Reply With Quote
 
Irrwahn Grausewitz
Guest
Posts: n/a
 
      10-12-2003
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>Hello Mark McIntyre,
>
>On 11-Oct-2003, Mark McIntyre <(E-Mail Removed)> wrote:
>
>> Please don't tell us what
>> it is, we know already its Outhouse Express 6.

>
>How did you know?


Probably by inspection of the "X-Newsreader:" field in the header, wich
isn't present in your post so I can't answer the next question.

>BTW which newsreader am I using?


Regards
--
Irrwahn
((E-Mail Removed))
 
Reply With Quote
 
Mark McIntyre
Guest
Posts: n/a
 
      10-12-2003
On Sun, 12 Oct 2003 16:46:44 GMT, in comp.lang.c ,
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>Hello Mark McIntyre,
>
>On 11-Oct-2003, Mark McIntyre <(E-Mail Removed)> wrote:
>
>> Please don't tell us what
>> it is, we know already its Outhouse Express 6.

>
>How did you know?
>BTW which newsreader am I using?


Because the headers said so. But you knew that, or you'd not be busy
munging yours now. Probably XNews or webmail by the way.


--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
nospam@nospam.invalid
Guest
Posts: n/a
 
      10-13-2003
Hello Mark McIntyre,

On 13-Oct-2003, Mark McIntyre <(E-Mail Removed)> wrote:

> Because the headers said so. But you knew that, or you'd not be busy
> munging yours now. Probably XNews or webmail by the way.


Oh! Don't acuse me of munging my headers
All I was trying to say was that you cannot confirm by just seeing the
headers.

Now guess where this post originated.
Answer the X-question

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
skip first N lines when reading file Jie Perl Misc 6 06-28-2007 09:07 AM
DVD Verdict reviews: MEMOIRS OF A GEISHA, THE TEN COMMANDMENTS: 50TH ANNIVERSARY COLLECTION, and more! DVD Verdict DVD Video 0 04-03-2006 08:19 AM
DVD Verdict reviews: LADY AND THE TRAMP: 50TH ANNIVERSARY EDITION and more! DVD Verdict DVD Video 0 03-06-2006 09:22 AM
How can I open a file, skip first 2 lines and get the 50th character? FrancisC C++ 7 10-10-2003 07:11 PM



Advertisments