sscanf: parsing a file
-
Hi, I need to parse a file which has spaces and tabs with some entries that i need to pull. I'm using sscanf function. How do I ensure that I skip the spaces and tabs which could be in randon number. What could be a regular expression for this?
Well, skipping blanks and tabs is very simple. You may code you own implementation for. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Well, skipping blanks and tabs is very simple. You may code you own implementation for. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I did not ask for simplicity or complexity but rather a solution.
-
I did not ask for simplicity or complexity but rather a solution.
The solution is in your hands (well in your brain). Write a function to skip balnks and tabs (you're supposed to be a software developer).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
The solution is in your hands (well in your brain). Write a function to skip balnks and tabs (you're supposed to be a software developer).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I guess you are not a software developer but rather a philoshpher who thinks about those sentences. I need a urgent fix and dont want to travel googling. I guess the forum is to get answer and not to fight around and highjacking
-
I guess you are not a software developer but rather a philoshpher who thinks about those sentences. I need a urgent fix and dont want to travel googling. I guess the forum is to get answer and not to fight around and highjacking
tom groezer wrote:
I guess you are not a software developer but rather a philoshpher who thinks about those sentences.
Your guess is wrong: I'm actually a clown.
tom groezer wrote:
I need a urgent fix and dont want to travel googling.
Do you really need google for that? Do you realize it is pretty basic stuff?
tom groezer wrote:
I guess the forum is to get answer and not to fight around and highjacking
I suppose the forum should help, not give you code with a spoon.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
tom groezer wrote:
I guess you are not a software developer but rather a philoshpher who thinks about those sentences.
Your guess is wrong: I'm actually a clown.
tom groezer wrote:
I need a urgent fix and dont want to travel googling.
Do you really need google for that? Do you realize it is pretty basic stuff?
tom groezer wrote:
I guess the forum is to get answer and not to fight around and highjacking
I suppose the forum should help, not give you code with a spoon.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]R u a manager or something or r u not in your good MOODS. Get the crap out i will find it for myself : That will provide some breather to you. Have a nice evening :)
-
R u a manager or something or r u not in your good MOODS. Get the crap out i will find it for myself : That will provide some breather to you. Have a nice evening :)
tom groezer wrote:
R u a manager or something or r u not in your good MOODS.
Broken keyboard, eh? Well, sometimes I really would like to be a manager, you know, just to kick in the ass the lazy developers...
tom groezer wrote:
Have a nice evening
Thanks (actually it's, morning here).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
tom groezer wrote:
R u a manager or something or r u not in your good MOODS.
Broken keyboard, eh? Well, sometimes I really would like to be a manager, you know, just to kick in the ass the lazy developers...
tom groezer wrote:
Have a nice evening
Thanks (actually it's, morning here).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]That means you are not one Best of luck on your journey of becoming a a******le. Parese the space in between now :))
-
That means you are not one Best of luck on your journey of becoming a a******le. Parese the space in between now :))
tom groezer wrote:
a******le. Parese the space in between
I'm not able to skip the blanks and the tabs, please provide me code... :-\
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
tom groezer wrote:
a******le. Parese the space in between
I'm not able to skip the blanks and the tabs, please provide me code... :-\
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]U r a real dumb physivally if not in software world if you r not able to decode that mr AH
-
tom groezer wrote:
a******le. Parese the space in between
I'm not able to skip the blanks and the tabs, please provide me code... :-\
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]U r a real dumb physivally if not in software world if you r not able to decode that mr AH bahut sulag rahi hein tumhari lekin
-
U r a real dumb physivally if not in software world if you r not able to decode that mr AH bahut sulag rahi hein tumhari lekin
Ranting in your mother language won't help you, my dear... :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Ranting in your mother language won't help you, my dear... :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]:) but it is helping you AH.
-
I guess you are not a software developer but rather a philoshpher who thinks about those sentences. I need a urgent fix and dont want to travel googling. I guess the forum is to get answer and not to fight around and highjacking
tom groezer wrote:
I guess the forum is to get answer and not to fight around and highjacking
There you are right. But its not a forum to support lazy developers to earn money as easy as possible. And sorry to say it so, but I think CPal has already proven that he is a real developer (and maybe also a philosopher ;P ). You didn't!
tom groezer wrote:
I need a urgent fix
I will vote urgent as the "lazy developers word of the year".
Greetings Covean
-
tom groezer wrote:
I guess the forum is to get answer and not to fight around and highjacking
There you are right. But its not a forum to support lazy developers to earn money as easy as possible. And sorry to say it so, but I think CPal has already proven that he is a real developer (and maybe also a philosopher ;P ). You didn't!
tom groezer wrote:
I need a urgent fix
I will vote urgent as the "lazy developers word of the year".
Greetings Covean
Thank you. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
:) but it is helping you AH.
tom groezer wrote:
but it is helping you AH
I'm glad to be a representative of the Austro-Hungarian empire. As about you, well, hiding behind acronyms or Hindi language makes you just a coward, a plain, silly, dumb coward. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Thank you. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I think you guys are all slaves of that palini the ASHO. I can see the forum for his developement skills. Looks like he is a frsutrated devloper in and needs some moksha. Let me know if you need that :)
-
I think you guys are all slaves of that palini the ASHO. I can see the forum for his developement skills. Looks like he is a frsutrated devloper in and needs some moksha. Let me know if you need that :)
Ganje (Read bald in your mother tongue :)) aadmi ka aise hee haal hota hein
-
Ganje (Read bald in your mother tongue :)) aadmi ka aise hee haal hota hein
tom groezer wrote:
Ganje (Read bald in your mother tongue Smile ) aadmi ka aise hee haal hota hein
Of course you missed my mother tongue. I see you have a brilliant brain. :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
tom groezer wrote:
Ganje (Read bald in your mother tongue Smile ) aadmi ka aise hee haal hota hein
Of course you missed my mother tongue. I see you have a brilliant brain. :rolleyes:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]