Home / Microsoft / Microsoft DOS / How to check condition in txt file
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: 1 [2]  All - (Bottom) Print
Author Topic: How to check condition in txt file  (Read 1169 times)
billrich
Guest
« Reply #15 on: November 17, 2009, 04:09:10 PM »

But 1st December satisfies LEQ 30th November; and I see trouble ahead if the day number has a leading zero. I guess we'll find out in a fortnight.


Yogesh123 is comparing  only the first  25 days of any month.

Yogesh123 does not compare  Dec 1 with  Nov 30. 

It is possible 01 could be considered an octal number?  Is octal 1 > 25?
IP logged
gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« Reply #16 on: November 17, 2009, 04:58:33 PM »

Yogesh123 is comparing  only the first  25 days of any month.

Yogesh123 does not compare  Dec 1 with  Nov 30. 

It is possible 01 could be considered an octal number?  Is octal 1 > 25?
so what if he doesn't do that now? When you write code, write it in such a way that it won't break when things happen. Its called code resiliency , by yours truly.
IP logged

gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« Reply #17 on: November 17, 2009, 04:59:23 PM »

so what if he doesn't do that now? When you write code, write it in such a way that it won't break easily when things happen. Its called code resiliency , by yours truly.
IP logged

Pages: 1 [2]  All - (Top) Print 
Home / Microsoft / Microsoft DOS / How to check condition in txt file « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.079 seconds with 19 queries.