lire et editer un txt sous JAVA
Répondre à la discussion
Affichage des résultats 1 à 17 sur 17

lire et editer un txt sous JAVA



  1. #1
    invitec35bc9ea

    Arrow lire et editer un txt sous JAVA


    ------

    bonsoir, j'ai un fichier texte dont l'extension est igs (c'est un neutre 3D au format texte), et je voudrais l'editer comme suit: l'original: d'habord le subdiviser: le header:
    SolidWorks IGES file using analytic representation for surfaces S 1
    1H,,1H;,13HCRANTE.SLDPRT,39HD: \xxxxxxxxx\Mes Documents\CRANTE.IGS,15HSG 1
    olidWorks 2007,15HSolidWorks 2007,32,308,15,308,15,13HCRANT E.SLDPRT,1., G 2
    2,2HMM,50,0.125,13H070223.2127 27,1E-008,499990.,11Hxxxxxxxxx,,11,0 , G 3
    13H070223.212727; G 4

    -----
    Dernière modification par JPL ; 02/03/2007 à 00h07.

  2. #2
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    la partie 1:
    314 1 0 0 0 00000200D 1
    314 0 8 1 0 0D 2
    110 2 0 0 0 01010000D 3
    110 0 0 1 0 0D 4
    110 3 0 0 0 01010000D 5
    110 0 0 1 0 0D 6
    120 4 0 0 0 01010000D 7
    120 0 0 1 0 0D 8
    126 5 0 0 0 01010500D 9
    126 0 0 2 0 0D 10
    124 7 0 0 0 00000000D 11
    124 0 0 3 0 0D 12
    100 10 0 0 0 11 01010000D 13
    100 0 0 1 0 0D 14
    126 11 0 0 0 01010500D 15
    126 0 0 2 0 0D 16
    110 13 0 0 0 01010000D 17
    110 0 0 1 0 0D 18
    126 14 0 0 0 01010500D 19
    126 0 0 2 0 0D 20
    100 16 0 0 0 01010000D 21
    100 0 0 1 0 0D 22
    126 17 0 0 0 01010500D 23
    126 0 0 2 0 0D 24
    110 19 0 0 0 01010000D 25
    110 0 0 1 0 0D 26
    102 20 0 0 0 01010500D 27
    102 0 0 1 0 0D 28
    102 21 0 0 0 01010000D 29
    102 0 0 1 0 0D 30
    142 22 0 0 0 00010500D 31
    142 0 0 1 0 0D 32
    144 23 0 0 0 00000000D 33
    144 0 -1 1 0 0D 34
    110 24 0 0 0 01010000D 35
    110 0 0 1 0 0D 36
    110 25 0 0 0 01010000D 37
    110 0 0 1 0 0D 38
    120 26 0 0 0 01010000D 39
    120 0 0 1 0 0D 40
    126 27 0 0 0 01010500D 41
    126 0 0 2 0 0D 42
    100 29 0 0 0 01010000D 43
    100 0 0 1 0 0D 44
    126 30 0 0 0 01010500D 45
    126 0 0 2 0 0D 46
    110 32 0 0 0 01010000D 47
    110 0 0 1 0 0D 48
    126 33 0 0 0 01010500D 49
    126 0 0 2 0 0D 50
    124 35 0 0 0 00000000D 51
    124 0 0 3 0 0D 52
    100 38 0 0 0 51 01010000D 53
    100 0 0 1 0 0D 54
    126 39 0 0 0 01010500D 55
    126 0 0 2 0 0D 56
    110 41 0 0 0 01010000D 57
    110 0 0 1 0 0D 58
    102 42 0 0 0 01010500D 59
    102 0 0 1 0 0D 60
    102 43 0 0 0 01010000D 61
    102 0 0 1 0 0D 62
    142 44 0 0 0 00010500D 63
    142 0 0 1 0 0D 64
    144 45 0 0 0 00000000D 65
    144 0 -1 1 0 0D 66
    128 46 0 0 0 01010000D 67
    128 0 0 2 0 0D 68
    126 48 0 0 0 01010500D 69
    126 0 0 2 0 0D 70
    110 50 0 0 0 01010000D 71
    110 0 0 1 0 0D 72
    126 51 0 0 0 01010500D 73
    126 0 0 2 0 0D 74
    110 53 0 0 0 01010000D 75
    110 0 0 1 0 0D 76
    126 54 0 0 0 01010500D 77
    126 0 0 2 0 0D 78
    110 56 0 0 0 01010000D 79
    110 0 0 1 0 0D 80
    126 57 0 0 0 01010500D 81
    126 0 0 2 0 0D 82
    110 59 0 0 0 01010000D 83
    110 0 0 1 0 0D 84
    102 60 0 0 0 01010500D 85
    102 0 0 1 0 0D 86
    102 61 0 0 0 01010000D 87
    102 0 0 1 0 0D 88
    142 62 0 0 0 00010500D 89
    142 0 0 1 0 0D 90
    144 63 0 0 0 00000000D 91
    144 0 -1 1 0 0D 92
    128 64 0 0 0 01010000D 93
    128 0 0 2 0 0D 94
    126 66 0 0 0 01010500D 95
    126 0 0 2 0 0D 96
    110 68 0 0 0 01010000D 97
    110 0 0 1 0 0D 98
    126 69 0 0 0 01010500D 99
    126 0 0 2 0 0D 100
    110 71 0 0 0 01010000D 101
    110 0 0 1 0 0D 102
    126 72 0 0 0 01010500D 103
    126 0 0 2 0 0D 104
    110 74 0 0 0 01010000D 105
    110 0 0 1 0 0D 106
    126 75 0 0 0 01010500D 107
    126 0 0 2 0 0D 108
    110 77 0 0 0 01010000D 109
    110 0 0 1 0 0D 110
    102 78 0 0 0 01010500D 111
    102 0 0 1 0 0D 112
    102 79 0 0 0 01010000D 113
    102 0 0 1 0 0D 114
    142 80 0 0 0 00010500D 115
    142 0 0 1 0 0D 116
    144 81 0 0 0 00000000D 117
    144 0 -1 1 0 0D 118
    128 82 0 0 0 01010000D 119
    128 0 0 2 0 0D 120
    126 84 0 0 0 01010500D 121
    126 0 0 2 0 0D 122
    110 86 0 0 0 01010000D 123
    110 0 0 1 0 0D 124
    126 87 0 0 0 01010500D 125
    126 0 0 2 0 0D 126
    110 89 0 0 0 01010000D 127
    110 0 0 1 0 0D 128
    126 90 0 0 0 01010500D 129
    126 0 0 2 0 0D 130
    110 92 0 0 0 01010000D 131
    110 0 0 1 0 0D 132
    126 93 0 0 0 01010500D 133
    126 0 0 2 0 0D 134
    110 95 0 0 0 01010000D 135
    110 0 0 1 0 0D 136
    102 96 0 0 0 01010500D 137
    102 0 0 1 0 0D 138
    102 97 0 0 0 01010000D 139
    102 0 0 1 0 0D 140
    142 98 0 0 0 00010500D 141
    142 0 0 1 0 0D 142
    144 99 0 0 0 00000000D 143
    144 0 -1 1 0 0D 144
    128 100 0 0 0 01010000D 145
    128 0 0 2 0 0D 146
    126 102 0 0 0 01010500D 147
    126 0 0 2 0 0D 148
    110 104 0 0 0 01010000D 149
    110 0 0 1 0 0D 150

  3. #3
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    suite de la partie 1:
    126 105 0 0 0 01010500D 151
    126 0 0 2 0 0D 152
    110 107 0 0 0 01010000D 153
    110 0 0 1 0 0D 154
    126 108 0 0 0 01010500D 155
    126 0 0 2 0 0D 156
    110 110 0 0 0 01010000D 157
    110 0 0 1 0 0D 158
    126 111 0 0 0 01010500D 159
    126 0 0 2 0 0D 160
    110 113 0 0 0 01010000D 161
    110 0 0 1 0 0D 162
    102 114 0 0 0 01010500D 163
    102 0 0 1 0 0D 164
    102 115 0 0 0 01010000D 165
    102 0 0 1 0 0D 166
    142 116 0 0 0 00010500D 167
    142 0 0 1 0 0D 168
    144 117 0 0 0 00000000D 169
    144 0 -1 1 0 0D 170
    128 118 0 0 0 01010000D 171
    128 0 0 2 0 0D 172
    126 120 0 0 0 01010500D 173
    126 0 0 2 0 0D 174
    110 122 0 0 0 01010000D 175
    110 0 0 1 0 0D 176
    126 123 0 0 0 01010500D 177
    126 0 0 2 0 0D 178
    110 125 0 0 0 01010000D 179
    110 0 0 1 0 0D 180
    126 126 0 0 0 01010500D 181
    126 0 0 2 0 0D 182
    110 128 0 0 0 01010000D 183
    110 0 0 1 0 0D 184
    126 129 0 0 0 01010500D 185
    126 0 0 2 0 0D 186
    110 131 0 0 0 01010000D 187
    110 0 0 1 0 0D 188
    102 132 0 0 0 01010500D 189
    102 0 0 1 0 0D 190
    102 133 0 0 0 01010000D 191
    102 0 0 1 0 0D 192
    142 134 0 0 0 00010500D 193
    142 0 0 1 0 0D 194
    144 135 0 0 0 00000000D 195
    144 0 -1 1 0 0D 196
    110 136 0 0 0 01010000D 197
    110 0 0 1 0 0D 198
    110 137 0 0 0 01010000D 199
    110 0 0 1 0 0D 200
    120 138 0 0 0 01010000D 201
    120 0 0 1 0 0D 202
    126 139 0 0 0 01010500D 203
    126 0 0 2 0 0D 204
    110 141 0 0 0 01010000D 205
    110 0 0 1 0 0D 206
    126 142 0 0 0 01010500D 207
    126 0 0 2 0 0D 208
    124 144 0 0 0 00000000D 209
    124 0 0 4 0 0D 210
    100 148 0 0 0 209 01010000D 211
    100 0 0 1 0 0D 212
    126 149 0 0 0 01010500D 213
    126 0 0 2 0 0D 214
    110 151 0 0 0 01010000D 215
    110 0 0 1 0 0D 216
    126 152 0 0 0 01010500D 217
    126 0 0 2 0 0D 218
    100 154 0 0 0 01010000D 219
    100 0 0 1 0 0D 220
    102 155 0 0 0 01010500D 221
    102 0 0 1 0 0D 222
    102 156 0 0 0 01010000D 223
    102 0 0 1 0 0D 224
    142 157 0 0 0 00010500D 225
    142 0 0 1 0 0D 226
    144 158 0 0 0 00000000D 227
    144 0 -1 1 0 0D 228
    128 159 0 0 0 01010000D 229
    128 0 0 2 0 0D 230
    126 161 0 0 0 01010500D 231
    126 0 0 2 0 0D 232
    110 163 0 0 0 01010000D 233
    110 0 0 1 0 0D 234
    126 164 0 0 0 01010500D 235
    126 0 0 2 0 0D 236
    110 166 0 0 0 01010000D 237
    110 0 0 1 0 0D 238
    126 167 0 0 0 01010500D 239
    126 0 0 2 0 0D 240
    110 169 0 0 0 01010000D 241
    110 0 0 1 0 0D 242
    126 170 0 0 0 01010500D 243
    126 0 0 2 0 0D 244
    110 172 0 0 0 01010000D 245
    110 0 0 1 0 0D 246
    102 173 0 0 0 01010500D 247
    102 0 0 1 0 0D 248
    102 174 0 0 0 01010000D 249
    102 0 0 1 0 0D 250
    142 175 0 0 0 00010500D 251
    142 0 0 1 0 0D 252
    144 176 0 0 0 00000000D 253
    144 0 -1 1 0 0D 254
    128 177 0 0 0 01010000D 255
    128 0 0 3 0 0D 256
    126 180 0 0 0 01010500D 257
    126 0 0 2 0 0D 258
    110 182 0 0 0 01010000D 259
    110 0 0 1 0 0D 260
    126 183 0 0 0 01010500D 261
    126 0 0 3 0 0D 262
    100 186 0 0 0 01010000D 263
    100 0 0 1 0 0D 264
    126 187 0 0 0 01010500D 265
    126 0 0 2 0 0D 266
    110 189 0 0 0 01010000D 267
    110 0 0 1 0 0D 268
    126 190 0 0 0 01010500D 269
    126 0 0 4 0 0D 270
    124 194 0 0 0 00000000D 271
    124 0 0 4 0 0D 272
    100 198 0 0 0 271 01010000D 273
    100 0 0 1 0 0D 274
    126 199 0 0 0 01010500D 275
    126 0 0 2 0 0D 276
    110 201 0 0 0 01010000D 277
    110 0 0 1 0 0D 278
    126 202 0 0 0 01010500D 279
    126 0 0 6 0 0D 280
    100 208 0 0 0 01010000D 281
    100 0 0 1 0 0D 282
    126 209 0 0 0 01010500D 283
    126 0 0 6 0 0D 284
    100 215 0 0 0 01010000D 285
    100 0 0 1 0 0D 286
    126 216 0 0 0 01010500D 287
    126 0 0 2 0 0D 288
    110 218 0 0 0 01010000D 289
    110 0 0 1 0 0D 290
    126 219 0 0 0 01010500D 291
    126 0 0 11 0 0D 292
    100 230 0 0 0 01010000D 293
    100 0 0 1 0 0D 294
    126 231 0 0 0 01010500D 295
    126 0 0 2 0 0D 296
    110 233 0 0 0 01010000D 297
    110 0 0 1 0 0D 298
    126 234 0 0 0 01010500D 299
    126 0 0 3 0 0D 300

  4. #4
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    suite de la partie 1:
    124 237 0 0 0 00000000D 301
    124 0 0 3 0 0D 302
    100 240 0 0 0 301 01010000D 303
    100 0 0 1 0 0D 304
    126 241 0 0 0 01010500D 305
    126 0 0 2 0 0D 306
    110 243 0 0 0 01010000D 307
    110 0 0 1 0 0D 308
    126 244 0 0 0 01010500D 309
    126 0 0 4 0 0D 310
    100 248 0 0 0 01010000D 311
    100 0 0 1 0 0D 312
    102 249 0 0 0 01010500D 313
    102 0 0 1 0 0D 314
    102 250 0 0 0 01010000D 315
    102 0 0 1 0 0D 316
    142 251 0 0 0 00010500D 317
    142 0 0 1 0 0D 318
    144 252 0 0 0 00000000D 319
    144 0 -1 1 0 0D 320
    128 253 0 0 0 01010000D 321
    128 0 0 2 0 0D 322
    126 255 0 0 0 01010500D 323
    126 0 0 4 0 0D 324
    124 259 0 0 0 00000000D 325
    124 0 0 4 0 0D 326
    100 263 0 0 0 325 01010000D 327
    100 0 0 1 0 0D 328
    126 264 0 0 0 01010500D 329
    126 0 0 2 0 0D 330
    110 266 0 0 0 01010000D 331
    110 0 0 1 0 0D 332
    126 267 0 0 0 01010500D 333
    126 0 0 6 0 0D 334
    100 273 0 0 0 01010000D 335
    100 0 0 1 0 0D 336
    126 274 0 0 0 01010500D 337
    126 0 0 6 0 0D 338
    100 280 0 0 0 01010000D 339
    100 0 0 1 0 0D 340
    126 281 0 0 0 01010500D 341
    126 0 0 2 0 0D 342
    110 283 0 0 0 01010000D 343
    110 0 0 1 0 0D 344
    126 284 0 0 0 01010500D 345
    126 0 0 11 0 0D 346
    100 295 0 0 0 01010000D 347
    100 0 0 1 0 0D 348
    126 296 0 0 0 01010500D 349
    126 0 0 2 0 0D 350
    110 298 0 0 0 01010000D 351
    110 0 0 1 0 0D 352
    126 299 0 0 0 01010500D 353
    126 0 0 3 0 0D 354
    124 302 0 0 0 00000000D 355
    124 0 0 4 0 0D 356
    100 306 0 0 0 355 01010000D 357
    100 0 0 1 0 0D 358
    126 307 0 0 0 01010500D 359
    126 0 0 2 0 0D 360
    110 309 0 0 0 01010000D 361
    110 0 0 1 0 0D 362
    126 310 0 0 0 01010500D 363
    126 0 0 4 0 0D 364
    100 314 0 0 0 01010000D 365
    100 0 0 1 0 0D 366
    126 315 0 0 0 01010500D 367
    126 0 0 2 0 0D 368
    110 317 0 0 0 01010000D 369
    110 0 0 1 0 0D 370
    126 318 0 0 0 01010500D 371
    126 0 0 3 0 0D 372
    100 321 0 0 0 01010000D 373
    100 0 0 1 0 0D 374
    126 322 0 0 0 01010500D 375
    126 0 0 2 0 0D 376
    110 324 0 0 0 01010000D 377
    110 0 0 1 0 0D 378
    102 325 0 0 0 01010500D 379
    102 0 0 1 0 0D 380
    102 326 0 0 0 01010000D 381
    102 0 0 1 0 0D 382
    142 327 0 0 0 00010500D 383
    142 0 0 1 0 0D 384
    144 328 0 0 0 00000000D 385
    144 0 -1 1 0 0D 386
    110 329 0 0 0 01010000D 387
    110 0 0 1 0 0D 388
    110 330 0 0 0 01010000D 389
    110 0 0 1 0 0D 390
    120 331 0 0 0 01010000D 391
    120 0 0 1 0 0D 392
    126 332 0 0 0 01010500D 393
    126 0 0 2 0 0D 394
    110 334 0 0 0 01010000D 395
    110 0 0 1 0 0D 396
    126 335 0 0 0 01010500D 397
    126 0 0 2 0 0D 398
    100 337 0 0 0 01010000D 399
    100 0 0 1 0 0D 400
    126 338 0 0 0 01010500D 401
    126 0 0 2 0 0D 402
    110 340 0 0 0 01010000D 403
    110 0 0 1 0 0D 404
    126 341 0 0 0 01010500D 405
    126 0 0 2 0 0D 406
    124 343 0 0 0 00000000D 407
    124 0 0 4 0 0D 408
    100 347 0 0 0 407 01010000D 409
    100 0 0 1 0 0D 410
    102 348 0 0 0 01010500D 411
    102 0 0 1 0 0D 412
    102 349 0 0 0 01010000D 413
    102 0 0 1 0 0D 414
    142 350 0 0 0 00010500D 415
    142 0 0 1 0 0D 416
    144 351 0 0 0 00000000D 417
    144 0 -1 1 0 0D 418
    110 352 0 0 0 01010000D 419
    110 0 0 1 0 0D 420
    110 353 0 0 0 01010000D 421
    110 0 0 1 0 0D 422
    120 354 0 0 0 01010000D 423
    120 0 0 1 0 0D 424
    126 355 0 0 0 01010500D 425
    126 0 0 2 0 0D 426
    124 357 0 0 0 00000000D 427
    124 0 0 2 0 0D 428
    100 359 0 0 0 427 01010000D 429
    100 0 0 1 0 0D 430
    126 360 0 0 0 01010500D 431
    126 0 0 2 0 0D 432
    110 362 0 0 0 01010000D 433
    110 0 0 1 0 0D 434
    126 363 0 0 0 01010500D 435
    126 0 0 2 0 0D 436
    100 365 0 0 0 01010000D 437
    100 0 0 1 0 0D 438
    126 366 0 0 0 01010500D 439
    126 0 0 2 0 0D 440
    110 368 0 0 0 01010000D 441
    110 0 0 1 0 0D 442
    102 369 0 0 0 01010500D 443
    102 0 0 1 0 0D 444
    102 370 0 0 0 01010000D 445
    102 0 0 1 0 0D 446
    142 371 0 0 0 00010500D 447
    142 0 0 1 0 0D 448
    144 372 0 0 0 00000000D 449
    144 0 -1 1 0 0D 450

  5. A voir en vidéo sur Futura
  6. #5
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    suite de la partie 1:
    110 373 0 0 0 01010000D 451
    110 0 0 1 0 0D 452
    110 374 0 0 0 01010000D 453
    110 0 0 1 0 0D 454
    120 375 0 0 0 01010000D 455
    120 0 0 1 0 0D 456
    126 376 0 0 0 01010500D 457
    126 0 0 2 0 0D 458
    124 378 0 0 0 00000000D 459
    124 0 0 3 0 0D 460
    100 381 0 0 0 459 01010000D 461
    100 0 0 1 0 0D 462
    126 382 0 0 0 01010500D 463
    126 0 0 2 0 0D 464
    110 384 0 0 0 01010000D 465
    110 0 0 1 0 0D 466
    126 385 0 0 0 01010500D 467
    126 0 0 2 0 0D 468
    100 387 0 0 0 01010000D 469
    100 0 0 1 0 0D 470
    126 388 0 0 0 01010500D 471
    126 0 0 2 0 0D 472
    110 390 0 0 0 01010000D 473
    110 0 0 1 0 0D 474
    102 391 0 0 0 01010500D 475
    102 0 0 1 0 0D 476
    102 392 0 0 0 01010000D 477
    102 0 0 1 0 0D 478
    142 393 0 0 0 00010500D 479
    142 0 0 1 0 0D 480
    144 394 0 0 0 00000000D 481
    144 0 -1 1 0 0D 482
    110 395 0 0 0 01010000D 483
    110 0 0 1 0 0D 484
    110 396 0 0 0 01010000D 485
    110 0 0 1 0 0D 486
    120 397 0 0 0 01010000D 487
    120 0 0 1 0 0D 488
    126 398 0 0 0 01010500D 489
    126 0 0 2 0 0D 490
    110 400 0 0 0 01010000D 491
    110 0 0 1 0 0D 492
    126 401 0 0 0 01010500D 493
    126 0 0 2 0 0D 494
    100 403 0 0 0 01010000D 495
    100 0 0 1 0 0D 496
    126 404 0 0 0 01010500D 497
    126 0 0 2 0 0D 498
    110 406 0 0 0 01010000D 499
    110 0 0 1 0 0D 500
    126 407 0 0 0 01010500D 501
    126 0 0 2 0 0D 502
    124 409 0 0 0 00000000D 503
    124 0 0 3 0 0D 504
    100 412 0 0 0 503 01010000D 505
    100 0 0 1 0 0D 506
    102 413 0 0 0 01010500D 507
    102 0 0 1 0 0D 508
    102 414 0 0 0 01010000D 509
    102 0 0 1 0 0D 510
    142 415 0 0 0 00010500D 511
    142 0 0 1 0 0D 512
    144 416 0 0 0 00000000D 513
    144 0 -1 1 0 0D 514

  7. #6
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    la partie 2:
    314,79.6078431372549,82.352941 1764706,93.7254901960784,; 1P 1
    110,0.,0.25,20.,0.,0.25,-980.; 3P 2
    110,-0.25,0.25,20.,-0.25,0.25,0.; 5P 3
    120,3,5,0.,6.28318530717959; 7P 4
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,4.71238898,0.,0., 9P 5
    6.283185307,0.,0.,1.,0.,0.,1.; 9P 6
    124,-1.41496243975109E-014,-1.,0.,0.250000000000001,-1., 11P 7
    1.41496243975109E-014,6.98296672221876E-015,0.249999999999858, 11P 8
    -6.98296672221876E-015,9.88063562997132E-029,-1.,40.; 11P 9
    100,20.,0.,0.25,0.25,0.25,0.,0 .5; 13P 10
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,6.283185307,0.,1., 15P 11
    6.283185307,0.,0.,1.,0.,0.,1.; 15P 12
    110,-0.25,0.25,20.,-0.25,0.25,0.; 17P 13
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,6.283185307,0.,1., 19P 14
    4.71238898,0.,0.,1.,0.,0.,1.; 19P 15
    100,0.,0.,0.25,-0.25,0.25,0.,0.; 21P 16
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,4.71238898,0.,0., 23P 17
    4.71238898,0.,0.,1.,0.,0.,1.; 23P 18
    110,0.,0.,0.,0.,0.,20.; 25P 19
    102,4,9,15,19,23; 27P 20
    102,4,13,17,21,25; 29P 21
    142,1,7,27,29,1; 31P 22
    144,7,1,0,31; 33P 23
    110,4.,0.25,20.,4.,0.25,-980.; 35P 24
    110,3.75,0.25,20.,3.75,0.25,0. ; 37P 25
    120,35,37,0.,6.28318530717959; 39P 26
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,4.71238898,0.,1., 41P 27
    1.570796327,0.,0.,1.,0.,0.,1.; 41P 28
    100,0.,4.,0.25,4.,0.,4.,0.5; 43P 29
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.570796327,0.,0., 45P 30
    1.570796327,0.,0.,1.,0.,0.,1.; 45P 31
    110,4.,0.5,0.,4.,0.5,20.; 47P 32
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.570796327,0.,0., 49P 33
    4.71238898,0.,0.,1.,0.,0.,1.; 49P 34
    124,1.41496243975109E-014,1.,-6.98296672221876E-015, 51P 35
    3.75000000000008,1.,-1.41496243975109E-014,0.,-3.75, 51P 36
    -9.88063562997132E-029,-6.98296672221876E-015,-1.,40.; 51P 37
    100,20.,4.,0.25,4.25,0.25,3.75 ,0.25; 53P 38
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,4.71238898,0.,1., 55P 39
    4.71238898,0.,0.,1.,0.,0.,1.; 55P 40
    110,4.,0.,20.,4.,0.,0.; 57P 41
    102,4,41,45,49,55; 59P 42
    102,4,43,47,53,57; 61P 43
    142,1,39,59,61,1; 63P 44
    144,39,1,0,63; 65P 45
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,3. 02, 67P 46
    0.5,0.,4.,0.5,0.,3.02,0.5,20., 4.,0.5,20.,0.,1.,0.,1.; 67P 47
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 69P 48
    0.,1.; 69P 49
    110,4.,0.5,0.,4.,0.5,20.; 71P 50
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 73P 51
    0.,1.; 73P 52
    110,4.,0.5,20.,3.02,0.5,20.; 75P 53
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 77P 54
    0.,1.; 77P 55
    110,3.02,0.5,20.,3.02,0.5,0.; 79P 56
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 81P 57
    0.,1.; 81P 58
    110,3.02,0.5,0.,4.,0.5,0.; 83P 59
    102,4,69,73,77,81; 85P 60
    102,4,71,75,79,83; 87P 61
    142,1,67,85,87,1; 89P 62
    144,67,1,0,89; 91P 63
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,3. , 93P 64
    0.98,0.,3.,0.52,0.,3.,0.98,20. ,3.,0.52,20.,0.,1.,0.,1.; 93P 65
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 95P 66
    0.,1.; 95P 67
    110,3.,0.52,0.,3.,0.52,20.; 97P 68
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 99P 69
    0.,1.; 99P 70
    110,3.,0.52,20.,3.,0.98,20.; 101P 71
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 103P 72
    0.,1.; 103P 73
    110,3.,0.98,20.,3.,0.98,0.; 105P 74
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 107P 75
    0.,1.; 107P 76
    110,3.,0.98,0.,3.,0.52,0.; 109P 77
    102,4,95,99,103,107; 111P 78
    102,4,97,101,105,109; 113P 79
    142,1,93,111,113,1; 115P 80
    144,93,1,0,115; 117P 81
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,1. 02, 119P 82
    1.,20.,1.02,1.,0.,2.98,1.,20., 2.98,1.,0.,0.,1.,0.,1.; 119P 83
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 121P 84
    0.,1.; 121P 85
    110,2.98,1.,0.,2.98,1.,20.; 123P 86
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 125P 87
    0.,1.; 125P 88
    110,2.98,1.,20.,1.02,1.,20.; 127P 89
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 129P 90
    0.,1.; 129P 91
    110,1.02,1.,20.,1.02,1.,0.; 131P 92
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 133P 93
    0.,1.; 133P 94
    110,1.02,1.,0.,2.98,1.,0.; 135P 95
    102,4,121,125,129,133; 137P 96
    102,4,123,127,131,135; 139P 97
    142,1,119,137,139,1; 141P 98
    144,119,1,0,141; 143P 99
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,1. , 145P 100
    0.52,0.,1.,0.98,0.,1.,0.52,20. ,1.,0.98,20.,0.,1.,0.,1.; 145P 101
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 147P 102
    0.,1.; 147P 103
    110,1.,0.98,0.,1.,0.98,20.; 149P 104
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 151P 105
    0.,1.; 151P 106
    110,1.,0.98,20.,1.,0.52,20.; 153P 107
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 155P 108
    0.,1.; 155P 109
    110,1.,0.52,20.,1.,0.52,0.; 157P 110
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 159P 111
    0.,1.; 159P 112
    110,1.,0.52,0.,1.,0.98,0.; 161P 113
    102,4,147,151,155,159; 163P 114
    102,4,149,153,157,161; 165P 115
    142,1,145,163,165,1; 167P 116
    144,145,1,0,167; 169P 117
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,0. , 171P 118
    0.5,20.,0.,0.5,0.,0.98,0.5,20. ,0.98,0.5,0.,0.,1.,0.,1.; 171P 119
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 173P 120
    0.,1.; 173P 121
    110,0.,0.5,20.,0.,0.5,0.; 175P 122
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 177P 123
    0.,1.; 177P 124
    110,0.,0.5,0.,0.98,0.5,0.; 179P 125
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 181P 126
    0.,1.; 181P 127
    110,0.98,0.5,0.,0.98,0.5,20.; 183P 128
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 185P 129
    0.,1.; 185P 130
    110,0.98,0.5,20.,0.,0.5,20.; 187P 131
    102,4,173,177,181,185; 189P 132
    102,4,175,179,183,187; 191P 133
    142,1,171,189,191,1; 193P 134
    144,171,1,0,193; 195P 135
    110,0.,0.25,20.,0.,0.25,-980.; 197P 136
    110,-0.25,0.25,20.,-0.25,0.25,0.; 199P 137
    120,197,199,0.,6.2831853071795 9; 201P 138
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,0.,0.,0.,0.,1.,0. , 203P 139
    0.,1.; 203P 140
    110,-0.25,0.25,0.,-0.25,0.25,20.; 205P 141
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,0.,1.570796327,0. , 207P 142
    0.,1.,0.,0.,1.; 207P 143
    124,-1.,-8.71926277899384E-017,6.98296672221876E-015, 209P 144
    -1.37776931245945E-013,-8.71926277899384E-017,1., 209P 145
    -3.45824953492534E-029,1.39564121001717E-027, 209P 146
    -6.98296672221876E-015,-3.51913585675334E-029,-1.,40.; 209P 147
    100,20.,0.,0.25,0.25,0.25,0.,0 .5; 211P 148
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.570796327,0.,1., 213P 149
    1.570796327,0.,0.,1.,0.,0.,1.; 213P 150

  8. #7
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    suite de la partie 2:
    110,0.,0.5,20.,0.,0.5,0.; 215P 151
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.570796327,0.,1.,0.,0. , 217P 152
    0.,1.,0.,0.,1.; 217P 153
    100,0.,0.,0.25,0.,0.5,-0.25,0.25; 219P 154
    102,4,203,207,213,217; 221P 155
    102,4,205,211,215,219; 223P 156
    142,1,201,221,223,1; 225P 157
    144,201,1,0,225; 227P 158
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1.,0. , 229P 159
    0.,0.,0.,0.,20.,4.,0.,0.,4.,0. ,20.,0.,1.,0.,1.; 229P 160
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,1.,0.,0.,0.,1.,0. , 231P 161
    0.,1.; 231P 162
    110,0.,0.,0.,0.,0.,20.; 233P 163
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,1.,1.,0.,0.,1.,0. , 235P 164
    0.,1.; 235P 165
    110,0.,0.,20.,4.,0.,20.; 237P 166
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.,0.,0.,1.,0.,0.,1.,0. , 239P 167
    0.,1.; 239P 168
    110,4.,0.,20.,4.,0.,0.; 241P 169
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.,0.,0.,0.,0.,0.,1.,0. , 243P 170
    0.,1.; 243P 171
    110,4.,0.,0.,0.,0.,0.; 245P 172
    102,4,231,235,239,243; 247P 173
    102,4,233,237,241,245; 249P 174
    142,1,229,247,249,1; 251P 175
    144,229,1,0,251; 253P 176
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1., 255P 177
    -0.277,0.,20.,4.277,0.,20.,-0.277,1.,20.,4.277,1.,20.,0.,1 .,0., 255P 178
    1.; 255P 179
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.715195433,1.,0., 257P 180
    0.284804567,1.,0.,0.,1.,0.,0., 1.; 257P 181
    110,2.98,1.,20.,1.02,1.,20.; 259P 182
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 261P 183
    0.284804567,1.,0.,0.282985448, 1.,0.,0.281699136,0.994142136, 0., 261P 184
    0.280412824,0.988284271,0.,0.2 80412824,0.98,0.,0.,1.,0.,0.,-1.; 261P 185
    100,20.,1.02,0.98,1.02,1.,1.,0 .98; 263P 186
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.280412824,0.98,0., 265P 187
    0.280412824,0.52,0.,0.,1.,0.,0 .,1.; 265P 188
    110,1.,0.98,20.,1.,0.52,20.; 267P 189
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 269P 190
    0.280412824,0.52,0.,0.28041282 4,0.511715729,0.,0.279126512, 269P 191
    0.505857864,0.,0.2778402,0.5,0 .,0.27602108,0.5,0.,0.,1.,0.,0 ., 269P 192
    1.; 269P 193
    124,1.,-1.40883940798198E-014,-6.98296672221876E-015, 271P 194
    1.46952784142729E-013,-1.40883940798198E-014,-1.,0., 271P 195
    1.04000000000001,-6.98296672221876E-015,9.83787870288853E-029, 271P 196
    -1.,40.; 271P 197
    100,20.,0.98,0.52,1.,0.52,0.98 ,0.54; 273P 198
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.27602108,0.5,0., 275P 199
    0.060825648,0.5,0.,0.,1.,0.,0. ,1.; 275P 200
    110,0.98,0.5,20.,0.,0.5,20.; 277P 201
    126,8,2,1,0,1,0,0.,0.,0.,0.25, 0.25,0.5,0.5,0.75,0.75,1.,1.,1 ., 279P 202
    1.,1.,1.,1.,1.,1.,1.,1.,1.,0.0 60825648,0.5,0.,0.049905997,0. 5, 279P 203
    0.,0.039817554,0.480969883,0., 0.029729112,0.461939766,0., 279P 204
    0.022007752,0.426776695,0.,0.0 14286393,0.391613624,0., 279P 205
    0.010107623,0.345670858,0.,0.0 05928854,0.299728092,0., 279P 206
    0.005928854,0.25,0.,0.,1.,0.,0 .,-1.; 279P 207
    100,20.,0.,0.25,0.,0.5,-0.25,0.25; 281P 208
    126,8,2,1,0,1,0,0.,0.,0.,0.25, 0.25,0.5,0.5,0.75,0.75,1.,1.,1 ., 283P 209
    1.,1.,1.,1.,1.,1.,1.,1.,1.,0.0 05928854,0.25,0.,0.005928854, 283P 210
    0.200271908,0.,0.010107623,0.1 54329142,0.,0.014286393, 283P 211
    0.108386376,0.,0.022007752,0.0 73223305,0.,0.029729112, 283P 212
    0.038060234,0.,0.039817554,0.0 19030117,0.,0.049905997,0.,0., 283P 213
    0.060825648,0.,0.,0.,1.,0.,0.,-1.; 283P 214
    100,20.,0.,0.25,-0.25,0.25,0.,0.; 285P 215
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.060825648,0.,0., 287P 216
    0.939174352,0.,0.,0.,1.,0.,0., 1.; 287P 217
    110,0.,0.,20.,4.,0.,20.; 289P 218
    126,16,2,1,0,1,0,0.,0.,0.,0.12 5,0.125,0.25,0.25,0.375,0.375, 291P 219
    0.5,0.5,0.625,0.625,0.75,0.75, 0.875,0.875,1.,1.,1.,1.,1.,1., 1., 291P 220
    1.,1.,1.,1.,1.,1.,1.,1.,1.,1., 1.,1.,1.,0.939174352,0.,0., 291P 221
    0.950094003,0.,0.,0.960182446, 0.019030117,0.,0.970270888, 291P 222
    0.038060234,0.,0.977992248,0.0 73223305,0.,0.985713607, 291P 223
    0.108386376,0.,0.989892377,0.1 54329142,0.,0.994071146, 291P 224
    0.200271908,0.,0.994071146,0.2 5,0.,0.994071146,0.299728092,0 ., 291P 225
    0.989892377,0.345670858,0.,0.9 85713607,0.391613624,0., 291P 226
    0.977992248,0.426776695,0.,0.9 70270888,0.461939766,0., 291P 227
    0.960182446,0.480969883,0.,0.9 50094003,0.5,0.,0.939174352,0. 5, 291P 228
    0.,0.,1.,0.,0.,-1.; 291P 229
    100,20.,4.,0.25,4.,0.,4.,0.5; 293P 230
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.939174352,0.5,0., 295P 231
    0.72397892,0.5,0.,0.,1.,0.,0., 1.; 295P 232
    110,4.,0.5,20.,3.02,0.5,20.; 297P 233
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 299P 234
    0.72397892,0.5,0.,0.7221598,0. 5,0.,0.720873488,0.505857864,0 ., 299P 235
    0.719587176,0.511715729,0.,0.7 19587176,0.52,0.,0.,1.,0.,0.,1 .; 299P 236
    124,-7.04419703990988E-015,-1.,0.,3.54000000000002,-1., 301P 237
    7.04419703990988E-015,6.98296672221876E-015,3.53999999999985, 301P 238
    -6.98296672221876E-015,4.91893935144426E-029,-1.,40.; 301P 239
    100,20.,3.02,0.52,3.04,0.52,3. 02,0.54; 303P 240
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.719587176,0.52,0., 305P 241
    0.719587176,0.98,0.,0.,1.,0.,0 .,1.; 305P 242
    110,3.,0.52,20.,3.,0.98,20.; 307P 243
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 309P 244
    0.719587176,0.98,0.,0.71958717 6,0.988284271,0.,0.718300864, 309P 245
    0.994142136,0.,0.717014552,1., 0.,0.715195433,1.,0.,0.,1.,0., 0., 309P 246
    -1.; 309P 247
    100,20.,2.98,0.98,3.,0.98,2.98 ,1.; 311P 248
    102,13,257,261,265,269,275,279 ,283,287,291,295,299,305,309; 313P 249
    102,13,259,263,267,273,277,281 ,285,289,293,297,303,307,311; 315P 250
    142,1,255,313,315,1; 317P 251
    144,255,1,0,317; 319P 252
    128,1,1,1,1,0,0,1,0,0,0.,0.,1. ,1.,0.,0.,1.,1.,1.,1.,1.,1., 321P 253
    -0.277,0.,0.,4.277,0.,0.,-0.277,1.,0.,4.277,1.,0.,0.,1., 0.,1.; 321P 254
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 323P 255
    0.280412824,0.52,0.,0.28041282 4,0.511715729,0.,0.279126512, 323P 256
    0.505857864,0.,0.2778402,0.5,0 .,0.27602108,0.5,0.,0.,1.,0.,0 ., 323P 257
    1.; 323P 258
    124,1.,-1.40883940798198E-014,-6.98296672221876E-015, 325P 259
    7.27935507011138E-015,-1.40883940798198E-014,-1.,0., 325P 260
    1.04000000000001,-6.98296672221876E-015,9.83787870288853E-029, 325P 261
    -1.,6.84330738777435E-015; 325P 262
    100,0.,0.98,0.52,1.,0.52,0.98, 0.54; 327P 263
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.27602108,0.5,0., 329P 264
    0.060825648,0.5,0.,0.,1.,0.,0. ,1.; 329P 265
    110,0.98,0.5,0.,0.,0.5,0.; 331P 266
    126,8,2,1,0,1,0,0.,0.,0.,0.25, 0.25,0.5,0.5,0.75,0.75,1.,1.,1 ., 333P 267
    1.,1.,1.,1.,1.,1.,1.,1.,1.,0.0 60825648,0.5,0.,0.049905997,0. 5, 333P 268
    0.,0.039817554,0.480969883,0., 0.029729112,0.461939766,0., 333P 269
    0.022007752,0.426776695,0.,0.0 14286393,0.391613624,0., 333P 270
    0.010107623,0.345670858,0.,0.0 05928854,0.299728092,0., 333P 271
    0.005928854,0.25,0.,0.,1.,0.,0 .,-1.; 333P 272
    100,0.,0.,0.25,0.,0.5,-0.25,0.25; 335P 273
    126,8,2,1,0,1,0,0.,0.,0.,0.25, 0.25,0.5,0.5,0.75,0.75,1.,1.,1 ., 337P 274
    1.,1.,1.,1.,1.,1.,1.,1.,1.,0.0 05928854,0.25,0.,0.005928854, 337P 275
    0.200271908,0.,0.010107623,0.1 54329142,0.,0.014286393, 337P 276
    0.108386376,0.,0.022007752,0.0 73223305,0.,0.029729112, 337P 277
    0.038060234,0.,0.039817554,0.0 19030117,0.,0.049905997,0.,0., 337P 278
    0.060825648,0.,0.,0.,1.,0.,0.,-1.; 337P 279
    100,0.,0.,0.25,-0.25,0.25,0.,0.; 339P 280
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.060825648,0.,0., 341P 281
    0.939174352,0.,0.,0.,1.,0.,0., 1.; 341P 282
    110,0.,0.,0.,4.,0.,0.; 343P 283
    126,16,2,1,0,1,0,0.,0.,0.,0.12 5,0.125,0.25,0.25,0.375,0.375, 345P 284
    0.5,0.5,0.625,0.625,0.75,0.75, 0.875,0.875,1.,1.,1.,1.,1.,1., 1., 345P 285
    1.,1.,1.,1.,1.,1.,1.,1.,1.,1., 1.,1.,1.,0.939174352,0.,0., 345P 286
    0.950094003,0.,0.,0.960182446, 0.019030117,0.,0.970270888, 345P 287
    0.038060234,0.,0.977992248,0.0 73223305,0.,0.985713607, 345P 288
    0.108386376,0.,0.989892377,0.1 54329142,0.,0.994071146, 345P 289
    0.200271908,0.,0.994071146,0.2 5,0.,0.994071146,0.299728092,0 ., 345P 290
    0.989892377,0.345670858,0.,0.9 85713607,0.391613624,0., 345P 291
    0.977992248,0.426776695,0.,0.9 70270888,0.461939766,0., 345P 292
    0.960182446,0.480969883,0.,0.9 50094003,0.5,0.,0.939174352,0. 5, 345P 293
    0.,0.,1.,0.,0.,-1.; 345P 294
    100,0.,4.,0.25,4.,0.,4.,0.5; 347P 295
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.939174352,0.5,0., 349P 296
    0.72397892,0.5,0.,0.,1.,0.,0., 1.; 349P 297
    110,4.,0.5,0.,3.02,0.5,0.; 351P 298
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 353P 299
    0.72397892,0.5,0.,0.7221598,0. 5,0.,0.720873488,0.505857864,0 ., 353P 300

  9. #8
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    suite de la partie 2:
    0.719587176,0.511715729,0.,0.7 19587176,0.52,0.,0.,1.,0.,0.,1 .; 353P 301
    124,-7.04419703990988E-015,-1.,0.,3.54000000000002,-1., 355P 302
    7.04419703990988E-015,6.98296672221876E-015,3.53999999999999, 355P 303
    -6.98296672221876E-015,4.91893935144426E-029,-1., 355P 304
    2.10885595011006E-014; 355P 305
    100,0.,3.02,0.52,3.04,0.52,3.0 2,0.54; 357P 306
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.719587176,0.52,0., 359P 307
    0.719587176,0.98,0.,0.,1.,0.,0 .,1.; 359P 308
    110,3.,0.52,0.,3.,0.98,0.; 361P 309
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 363P 310
    0.719587176,0.98,0.,0.71958717 6,0.988284271,0.,0.718300864, 363P 311
    0.994142136,0.,0.717014552,1., 0.,0.715195433,1.,0.,0.,1.,0., 0., 363P 312
    -1.; 363P 313
    100,0.,2.98,0.98,3.,0.98,2.98, 1.; 365P 314
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.715195433,1.,0., 367P 315
    0.284804567,1.,0.,0.,1.,0.,0., 1.; 367P 316
    110,2.98,1.,0.,1.02,1.,0.; 369P 317
    126,4,2,1,0,1,0,0.,0.,0.,0.5,0 .5,1.,1.,1.,1.,1.,1.,1.,1., 371P 318
    0.284804567,1.,0.,0.282985448, 1.,0.,0.281699136,0.994142136, 0., 371P 319
    0.280412824,0.988284271,0.,0.2 80412824,0.98,0.,0.,1.,0.,0.,-1.; 371P 320
    100,0.,1.02,0.98,1.02,1.,1.,0. 98; 373P 321
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.280412824,0.98,0., 375P 322
    0.280412824,0.52,0.,0.,1.,0.,0 .,1.; 375P 323
    110,1.,0.98,0.,1.,0.52,0.; 377P 324
    102,13,323,329,333,337,341,345 ,349,353,359,363,367,371,375; 379P 325
    102,13,327,331,335,339,343,347 ,351,357,361,365,369,373,377; 381P 326
    142,1,321,379,381,1; 383P 327
    144,321,1,0,383; 385P 328
    110,0.98,0.52,20.,0.98,0.52,10 20.; 387P 329
    110,1.,0.52,0.,1.,0.52,20.; 389P 330
    120,387,389,0.,6.2831853071795 9; 391P 331
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,4.71238898,0.,0., 393P 332
    4.71238898,0.,0.,1.,0.,0.,1.; 393P 333
    110,0.98,0.5,20.,0.98,0.5,0.; 395P 334
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,4.71238898,0.,0., 397P 335
    6.283185307,0.,0.,1.,0.,0.,1.; 397P 336
    100,0.,0.98,0.52,0.98,0.5,1.,0 .52; 399P 337
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,6.283185307,0.,1., 401P 338
    6.283185307,0.,0.,1.,0.,0.,1.; 401P 339
    110,1.,0.52,0.,1.,0.52,20.; 403P 340
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,6.283185307,0.,1., 405P 341
    4.71238898,0.,0.,1.,0.,0.,1.; 405P 342
    124,1.,-1.40883940798198E-014,-6.98296672221876E-015, 407P 343
    1.46952784142729E-013,-1.40883940798198E-014,-1.,0., 407P 344
    1.04000000000001,-6.98296672221876E-015,9.83787870288853E-029, 407P 345
    -1.,40.; 407P 346
    100,20.,0.98,0.52,1.,0.52,0.98 ,0.54; 409P 347
    102,4,393,397,401,405; 411P 348
    102,4,395,399,403,409; 413P 349
    142,1,391,411,413,1; 415P 350
    144,391,1,0,415; 417P 351
    110,1.02,0.98,20.,1.02,0.98,-980.; 419P 352
    110,1.,0.98,20.,1.,0.98,0.; 421P 353
    120,419,421,0.,6.2831853071795 9; 423P 354
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,0.,0.,0.,1.570796327,0. , 425P 355
    0.,1.,0.,0.,1.; 425P 356
    124,-1.,0.,6.98296672221876E-015,2.03999999999986,0.,1.,0., 0., 427P 357
    -6.98296672221876E-015,0.,-1.,40.; 427P 358
    100,20.,1.02,0.98,1.04,0.98,1. 02,1.; 429P 359
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.570796327,0.,1., 431P 360
    1.570796327,0.,0.,1.,0.,0.,1.; 431P 361
    110,1.02,1.,20.,1.02,1.,0.; 433P 362
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.570796327,0.,1.,0.,0. , 435P 363
    0.,1.,0.,0.,1.; 435P 364
    100,0.,1.02,0.98,1.02,1.,1.,0. 98; 437P 365
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,0.,0.,0.,0.,0.,0.,1.,0. , 439P 366
    0.,1.; 439P 367
    110,1.,0.98,0.,1.,0.98,20.; 441P 368
    102,4,425,431,435,439; 443P 369
    102,4,429,433,437,441; 445P 370
    142,1,423,443,445,1; 447P 371
    144,423,1,0,447; 449P 372
    110,2.98,0.98,20.,2.98,0.98,-980.; 451P 373
    110,2.96,0.98,20.,2.96,0.98,0. ; 453P 374
    120,451,453,0.,6.2831853071795 9; 455P 375
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,1.570796327,0.,0., 457P 376
    3.141592654,0.,0.,1.,0.,0.,1.; 457P 377
    124,6.12303176911189E-017,1.,0.,2.,1.,-6.12303176911189E-017, 459P 378
    -6.98296672221876E-015,-1.99999999999986, 459P 379
    -6.98296672221876E-015,4.27569270827966E-031,-1.,40.; 459P 380
    100,20.,2.98,0.98,3.,0.98,2.98 ,1.; 461P 381
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,3.141592654,0.,1., 463P 382
    3.141592654,0.,0.,1.,0.,0.,1.; 463P 383
    110,3.,0.98,20.,3.,0.98,0.; 465P 384
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,3.141592654,0.,1., 467P 385
    1.570796327,0.,0.,1.,0.,0.,1.; 467P 386
    100,0.,2.98,0.98,3.,0.98,2.98, 1.; 469P 387
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,1.570796327,0.,0., 471P 388
    1.570796327,0.,0.,1.,0.,0.,1.; 471P 389
    110,2.98,1.,0.,2.98,1.,20.; 473P 390
    102,4,457,463,467,471; 475P 391
    102,4,461,465,469,473; 477P 392
    142,1,455,475,477,1; 479P 393
    144,455,1,0,479; 481P 394
    110,3.02,0.52,20.,3.02,0.52,10 20.; 483P 395
    110,3.04,0.52,0.,3.04,0.52,20. ; 485P 396
    120,483,485,0.,6.2831853071795 9; 487P 397
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,3.141592654,0.,0., 489P 398
    3.141592654,0.,0.,1.,0.,0.,1.; 489P 399
    110,3.,0.52,20.,3.,0.52,0.; 491P 400
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,3.141592654,0.,0., 493P 401
    4.71238898,0.,0.,1.,0.,0.,1.; 493P 402
    100,0.,3.02,0.52,3.,0.52,3.02, 0.5; 495P 403
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,0.,4.71238898,0.,1., 497P 404
    4.71238898,0.,0.,1.,0.,0.,1.; 497P 405
    110,3.02,0.5,0.,3.02,0.5,20.; 499P 406
    126,1,1,1,0,1,0,0.,0.,1.,1.,1. ,1.,1.,4.71238898,0.,1., 501P 407
    3.141592654,0.,0.,1.,0.,0.,1.; 501P 408
    124,-7.04419703990988E-015,-1.,0.,3.54000000000002,-1., 503P 409
    7.04419703990988E-015,6.98296672221876E-015,3.53999999999985, 503P 410
    -6.98296672221876E-015,4.91893935144426E-029,-1.,40.; 503P 411
    100,20.,3.02,0.52,3.04,0.52,3. 02,0.54; 505P 412
    102,4,489,493,497,501; 507P 413
    102,4,491,495,499,505; 509P 414
    142,1,487,507,509,1; 511P 415
    144,487,1,0,511; 513P 416

  10. #9
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    apres avoir subdiviser ce fichier en 3 blocs, j'aimerais reecrire la partie 1 telle quelle dans un fichier à part, quand à la partie 2, je voudrais changer les virgules en tabulations suite à quoi je reecrirais le resultat dans un fichier.
    auriez vous une idée sur comment faire ceci?
    merci.

  11. #10
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    un moderateur pourrait-il fusionner les differents codes compatibles, et inserer ce lien dans le premier message devant la mention "l'original": http://www.sendspace.com/file/yvasw9
    et supprimer en suite ce message (#10).
    merci.

  12. #11
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    je precise que je voudrais faire une classe JAVA ou un seul ordre de commande me faira le tout. merci

  13. #12
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    en ouvrant l'original, vous remarquerez que pour la partie 2, à la fin de chaque ligne, il y a un nombre qui donne le numero de la ligne et un autre nombre sucédé de "P", y aurait-il moyen avant de changer les "," en " " de supprimer tout ces derniers.
    de meme, il y a des retours à la ligne inutiles, que j'aimerais supprimer, de facon qu'il n'y ait retour à la ligne qu'avec des points virgules.
    est-ce realisable, selon vous? et comment faire?
    merci

  14. #13
    invite24357dd0

    Re : lire et editer un txt sous JAVA

    Bonjour,
    Tout est classe en Java. Il y a plusieurs possibilités. La plus basique est que pour chaque ligne que tu lis dans le fichier d'origine, tu vérifies chaque caractère : soit c'est un caractère que tu veux remplacer et tu écris le remplaçant dans le fichier cible ; soit c'est un caractère normal et tu l'écris juste dans le nouveau fichier. Sinon, la voie la plus élégante est l'utilisation d'expression régulière. Je suppose que si tu montres ton code et expose les problèmes rencontré, on pourra t'aider (ou tu veux qu'on écrive le programme à ta place ?).

  15. #14
    invite7a8ce750

    Re : lire et editer un txt sous JAVA

    Il n'y a pas toujours des points-virgules sur une ligne. Est ce normal ?

  16. #15
    invite7a8ce750

    Re : lire et editer un txt sous JAVA

    Sinon, regardes la classe StringTokenizer qui pourrait t'aider si tu apprends à l'utiliser.

    Je ne sais pas si c'est obligatoire pour toi de passer en Java, mais un script bash avec l'utilisation sed sera plus facile à faire.

  17. #16
    invite7a8ce750

    Re : lire et editer un txt sous JAVA

    Je t'avais tapé un long texte explicatif mais tout a disparu au détour d'un mouvement douteux de mon fureteur -_-

    Désolé... je retaperais peut être ça une autre fois. :P

  18. #17
    invitec35bc9ea

    Re : lire et editer un txt sous JAVA

    bonjour,
    ou tu veux qu'on écrive le programme à ta place ?
    biensur que non, tout ce que je veux c'est etre guidé, ensuite j'ecrirais ça moi meme et vous montrerais le resultat pour critiques.
    Il n'y a pas toujours des points-virgules sur une ligne. Est ce normal ?
    là, ou il n'y a pas de point virgule, c'est la suite de la ligne precedente et je dois remettre ça dans une seule et unique ligne:
    de meme, il y a des retours à la ligne inutiles, que j'aimerais supprimer, de facon qu'il n'y ait retour à la ligne qu'avec des points virgules.
    Sinon, regardes la classe StringTokenizer qui pourrait t'aider si tu apprends à l'utiliser.
    Ok!
    Je ne sais pas si c'est obligatoire pour toi de passer en Java
    effectivement, ça l'est.
    Je t'avais tapé un long texte explicatif mais tout a disparu au détour d'un mouvement douteux de mon fureteur -_-

    Désolé... je retaperais peut être ça une autre fois. :P
    j'attends ça avec inpatience.

    merci à tous

Discussions similaires

  1. probleme de programation sous java
    Par bird12358 dans le forum Logiciel - Software - Open Source
    Réponses: 0
    Dernier message: 21/09/2007, 19h15
  2. java sous vista
    Par bird12358 dans le forum Logiciel - Software - Open Source
    Réponses: 1
    Dernier message: 02/09/2007, 08h57
  3. calcul matriciel sous java
    Par invitec35bc9ea dans le forum Logiciel - Software - Open Source
    Réponses: 2
    Dernier message: 11/05/2007, 12h37
  4. matlab sous java
    Par invitec35bc9ea dans le forum Logiciel - Software - Open Source
    Réponses: 1
    Dernier message: 26/02/2007, 05h25
  5. Animation sous Java
    Par invited749d0b6 dans le forum Logiciel - Software - Open Source
    Réponses: 0
    Dernier message: 02/07/2006, 01h12
Dans la rubrique Tech de Futura, découvrez nos comparatifs produits sur l'informatique et les technologies : imprimantes laser couleur, casques audio, chaises gamer...